AndMask

Description:

AndMask method performs a bit-wise AND operation with the field value and a given mask. The single parameter is the mask, which can be up to 64 bits (8 bytes) long.

A bit-wise AND compares each bit in the field value to the corresponding bit in the mask. If both are 1, the result is 1. Otherwise the result is 0. For example, if a byte field contained 0x77 and a RETRIEVE was performed using (AndMask 0xF0), the result would be 0x70.

Parameters:

[Required]

Int64

"Mask to apply to data"


Example:

FIELD connection (Fixed 2) RETRIEVE (AndMask 0xffff) (Decimal) "Address"