BIT(var%, bitno)

'returns the value of a specific bit (0-63) in an integer variable (0 or 1).

See also the BIT command