1.. include:: ../../Includes.txt
2
3============================================================
4Feature: #90213 - Support 'bit and' in TypoScript stdWrap_if
5============================================================
6
7See :issue:`90213`
8
9Description
10===========
11
12It is now possible to use :ts:`bitAnd` within TypoScript :ts:`if`.
13
14TYPO3 uses bits to store radio and checkboxes via TCA.
15Without this feature one would need to check whether any possible bit value is in a
16list. With this feature a simple comparison whether the expected value is part of the
17bit set is possible.
18
19Example
20=======
21
22An example usage could look like this:
23
24.. code-block:: typoscript
25
26   hideDefaultLanguageOfPage = TEXT
27   hideDefaultLanguageOfPage {
28     value = 0
29     value {
30       override = 1
31       override.if {
32         bitAnd.field = l18n_cfg
33         value = 1
34       }
35     }
36   }
37
38.. index:: ext:frontend, TypoScript
39