Logical expressions

A logical expression is either true or false.

A logical expression consists of one or more tests which may be combined with the operators "or", "and", "differs from", and "equivalent to".

Parentheses may be used to control the order of processing.

A test in the QPSMR command language is an expression which is evaluated as true or false. There are two kinds of test in QPSMR, simple tests and relational tests.

Where the same variable is referenced in two or more subsequent tests, the variable name and the following / (forward slash) can be omitted. This is not affected by parentheses so that in the following logical expression -


the last item is $128/9.

For further information on Logical expressions please see the appropriate section below:

Simple tests

Negative simple tests

CT function

Relational tests

Logical operator

Examples of logical expressions -