bitset requiredThe integer to test, treated as a set of bit flags. Non-numeric input is cast to an integer (so an empty or non-numeric bitset counts as 0). Usually a field getter such as a flags or status field.
bit requiredA bitmask to test against the bitset. The paired text is returned only when EVERY bit of this mask is set in the bitset (bitset bitwise-AND mask equals mask), so a multi-bit mask like 12 means bit-4 AND bit-8. A mask of 0, or an empty mask, always matches. You may repeat bit:text pairs to test several masks; the first that matches wins.
text requiredOutput returned when its paired bit mask matches. May contain any AA expression; the alias _#1 expands to the bitset value and _#2 to the matched mask.
else_text optionalThe trailing odd parameter, returned when no bit:text pair matched. Optional; omitting it yields an empty string when nothing matches. The _#1 alias (bitset value) still expands here, but _#2 is empty because no mask matched.
{ifbit:13:8:set:unset}
{ifbit:13:2:set:unset}
{ifbit:13:12:both 4 and 8:no}
[{ifbit:5:2:has bit 2}]
{ifbit:13:31:all five:15:low four:12:bits 4+8:none}
{ifbit:13:12:_#2 is set in _#1:no}
{ifbit:13:0:default branch:no}
{ifbit:13:16:has 16:none of them}