BIT

Portability Function: Performs a bit-level test for integers.

Module: USE DFPORT

Syntax

result = BIT (bitnum, source)

bitnum
(Input) INTEGER(4). Bit number to test. Must be in the range 0 (least significant bit) to 31 (most significant bit).


source
(Input) INTEGER(4). Variable being tested.

Results:

The result is of type logical. It is .TRUE. if bit bitnum of source is 1; otherwise, .FALSE..

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: BIC, BIS