4.3
CONDITIONS
4-6
A condition causes the object program to select between alternate paths of
control depending on the truth value of a test. Conditions are used in IF,
PERFORM, and SEARCH statements.
A condition is one of the following:
Relation condition
Class condition
Condition -name condition
Sign condition
NOT condition
Condition
1
~:n
[
(Condition)
The construction: NOT condition, where condition is one of the first four
types listed above, is not permitted
if
the condition itself contains NOT.
Conditions may be combined into logical operators. The logical operators
must be preceded by a space and followed by a space.
Logical
Operator
OR
AND
NOT
Meaning
Logical Inclusive Or
Logical Conjunction
Logical Negation
The figure below shows the relationships between the logical operators and
conditions, A and B.
Condition
Condition and Value
A
B
AANDB
AORB
NOTA
true
true
true
true
false
false
true
false
true
true
true
false
false
true
false
false
false
false
false
true
60229400
Need help?
Do you have a question about the 3300 and is the answer not in the manual?