Integral Enumeration Intrinsic Functions - BitAnd Method

Bitwise And

Member of Integral Enumeration Intrinsic Functions (PRIM_LIBI.IIntegralEnumerationIntrinsics)

Parameters

Name Type Data Type Description
Result *Result (Optional) Integer Resulting bit
With *Input Integer Comparison value

Details

BitAnd performs a logical bitwise And.
 
The BitXXX Intrinsic Functions are available in LANSA to support the use of binary bit masks.

Example

If (#Integer.BitAnd( 4 ) = 4)
   * Bit 4 is on
Else
   * Bit 4 is Off
Endif

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020