These manipulate bits in fields.

Description: Tests if specified bits are on or off.

Legacy RPG400 Example:

C        TESTB   '01'       Field 99

Modern RPGLE Example:

if %bitand(Field : x'03') = x'03';
// Bits on
endif;
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>