BIT(var%, bitno) = value

Sets a specific bit (0-63) in an integer variable.

value can be 0 or 1.

See also the BIT function