Priority 1 (highest) ** 2 * / 3 + - 4 = > < >= <= <> : 5 (lowest) NOT AND OR &The order of evaluation of expressions is determined by the priority of the operators. The rules are the same as those in FORTRAN2.2 with arithmetic operators having the highest priority, and logical operators the lowest. This means that a condition such as can be expressed in ICL as follows
X+Y > 0 AND X+Y <= 1without requiring any parentheses. In general however, it is good practice to use parentheses to clarify any situation in which the order of evaluation is in doubt.
In evaluating expressions ICL will freely apply type conversion to its
operands in order to make sense of them. This means not only that integers
will be converted to reals when required, but also that strings will be
converted to numbers when possible. A string can be converted to a numeric value
if the value of the string is itself a valid ICL expression. For example the
'1.2345' has a numeric value. The string
'X+1' has a numeric
value if X is currently a numeric variable (or if X is a string which has
a numeric value).
The operator & performs string concatenation - operands with numeric values
will be converted to strings. The : operator is used for
formatting numbers into character strings as described below.
ICL The Interactive Command Language for ADAM