IF Clause on the LOOP Statement (MATRIX-END MATRIX command)
The logical expression is evaluated before each
iteration of the loop structure. If it is false, the loop terminates
and control passes to the statement after END LOOP.
- The
IFclause is optional. If both the index clause and theIFclause are present, the index clause must appear first. - As in the
DO IFstructure, the logical expression of theIFclause is evaluated as scalar, with positive values being treated as true and 0 or negative values, as false.