mask

<< Click to Display Table of Contents >>

Navigation:  User guide > Constants >

mask

This represents a combination of codes in a data location. The codes are written without separation and can be in any order.

A mask is considered true if any of the listed codes is present; the mask is false if all the codes are empty.

If the codes in the mask are consecutive (and this depends on the order of codes specified in the ORDER command), the characters ".." may be used to replace the middle part of the mask. For example "1..47" is equivalent to 12347.

Examples of masks:

v37

234

90xv45

v..8

1234567890xv

A definition using 2 masks and a code:

dm $combs=$156/123,4,5..9,

This defines an mvar with 3 responses. The first response is true for any record which is coded 1,2 or 3 in $156. The third response is true for any record coded 5,6,7,8 or 9 in $156.