STE 58762 2-18
Note 3:
The substitution and reference to the array type data (type of variable name [index number]) are
dealt in the same manner as the original data type (scalar type and vector type) of the array type
data.
2.5.2 Logical Expressions
With SCOL, logical expressions can be used in combination with the commands IF, WAIT and ON.
Also, six relational operands are available (<, >, < = (or = <), > = (or = >), < > (or > <), and = =).
Also, logical expressions may be combined using the logical operands AND, OR and NOT. Scalar
constants, scalar variables and the results of calculations may be used as data in logical
expressions.
When evaluating equivalence, use the "= =" sign and not the "=" sign. When comparing real
numbers, differences of 0.001 or less will be ignored.
Logical expressions will return an integer value of 1 if true and 0 if false.
Examples:
1) IF K = =K2 * K3 THEN K = K2
ON MOTION > = 50 DO DOUT (1,2)
2) IF J1 THEN GOTO BRANCH1 ELSE GOTO BRANCH2
Let's take a look at the third example. If J1 is an integer 0 (or a real number with an
absolute value less than or equal to 0.001), the comparison will be considered as
FALSE. The program will then branch off to BRANCH2. Should J1 be anything
other than an integer 0 (or a real number with an absolute value more than 0.001),
the comparison will be considered as TRUE and the program will branch off to
BRANCH1.