The language has the usual logical operators such as: ==, !=, <, >, <=,
>=, |,
and ! as well as the arithmetic operators +, -, * and /.
The addition operator + is also used for the string concatenation. The
operator OR (resp. AND and NOT) is a synonym for
| (resp
and !).
Example 5:
step := 10 PRINT "The step is "+TOSTRING(step)
Remark: Most operators can be applied to expressions of different types. For example, the multiplication of an integer by a AST of variant "int_cst" (i.e. a fortran constant) will produce an integer value ; this AST is automatically casted into an integer value. When an appropriate cast can not be found, most operators return FALSE.