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 IF clause is optional. If both the index clause and the IF clause are present, the index clause must appear first.
  • As in the DO IF structure, the logical expression of the IF clause is evaluated as scalar, with positive values being treated as true and 0 or negative values, as false.