The following example declares T to be a truth set with membership equal to that of ALPHA. ALPHA consists of all uppercase letters and the digits 0 through 9, in the default character set.
TRUTHSET T(ALPHA)
The following example declares Z to be a truth set with membership of ALPHA8 and the hyphen (-).
TRUTHSET Z(ALPHA8 OR "-")
The following example declares NUMBERS to be a truth set with a membership of the digits 0 through 9 in the default character set.
TRUTHSET NUMBERS("0123478956")The following example declares LETTERS to be a truth set with a membership of ALPHA but not the digits 0 through 9; that is, consisting of the uppercase letters in the default character set.
TRUTHSET LETTERS(ALPHA AND NOT NUMBERS)
The following example declares two truth sets:
-
HEXN, with a membership of the hexadecimal characters 1, 2, and 3
-
ASCN, with a membership of the ASCII characters 1, 2, and 3
TRUTHSET HEXN(4"123"), ASCN(7"123")

