Previous Topic: Considerations

Next Topic: ALWAYS Instructions


COMPUTE IF, THEN, and ELSE Instructions

IF, THEN, and ELSE instructions are inserted into a run in the same way as arithmetic instructions.

Example:

COMPUTE FIELD ONE = ELAPS TIME = ACTIVE TIME,
COMPUTE IF FIELD ONE EQ 300 THEN FIELD TWO(C)(1) = '*'

This example is a computation. If FIELD ONE is equal to 300 seconds, CA JARS Wizard inserts an asterisk into a flag field to highlight the record when it is printed in a report.