Enform Plus Reference Manual

Enform Plus Language Elements
Enform Plus Reference Manual422684-001
3-23
Logical Expressions
The syntax of a logical expression is:
condition
has one of the following forms:
conditional-operator
is one of the conditional operators shown in Table 3-4 on page 3-22.
expression
is an IF/THEN/ELSE or arithmetic expression.
pattern-match
is a pattern of numbers or characters, enclosed within both quotation marks and
brackets. The syntax for a pattern-match is:
n
is an integer indicating that exactly n number of characters must precede or follow
string-literal when it is found in a field value.
string-literal
is the pattern of characters or numbers to which the field is being compared. The
string-literal must be enclosed in quotation marks.
[NOT] condition [ { AND | OR } ] [NOT] condition ] ...
{ { BEGINS WITH } }
{ { ']' } }
{ [not] { CONTAINS } string-literal }
{ { '>' } }
{ { conditional operator } }
field-name { { EQUAL } }
{ { EQ } }
{ { IS } { value-range } }
{ [NOT] { = } { "["pattern-match"]" } }
{ { NE } }
{ { <> } }
{ variable } { variable }
{ field-name } [NOT] conditional-operator { field-name }
{ expression } { expression }
{ { n } { n } }
{ "[" { m,n } string-literal { m,n } "]" }
{ { - } { - } }