This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Previous Topic

Up

Next Topic

Logical Expressions

Logical Expressions are used to specify calculations, which give a TRUE or FALSE result. They are used in the specification of:

Logical formulae contain Logical Operators acting on Logical Operands. For example:

SEX=1 AND (AGE=(2,3) OR SEG=1)

Logical operands can only take the value TRUE or the value FALSE

Table of logical operands for use with logical expressions

Operand

Description

Constant

Either of the values TRUE or FALSE. Synonyms may be used as alternatives to clarify the meaning of an expression in a given context. Synonyms for TRUE are ALL and YES. Synonyms for FALSE are NONE and NO.

Logical Function

The name of a logical function preceded by a variable name. The result is either TRUE or FALSE.

Comparison

Comparisons relate variable or constant values to give a TRUE or FALSE result. The effects of relational operations are described fully in the Relational Operators section.

In this section