IF - If Comparison#
IF is used for comparison purposes. This command has a True path (If Goto) and a False path (Else Goto).- Statement
- If employees are in Group 56 then go to Line 00200 otherwise go to Line 01000.
Line | CMD | OT | Operand 1 | OPER | OT | Operand2 | OT | Operand3 | If Goto | Else GoTo |
---|---|---|---|---|---|---|---|---|---|---|
00010 | IF | DB | DGR.GROUP_CODE | EQ | A | 56 | 00200 | 01000 |
- Statement
- If regular earnings (stored in PC 500) are greater than $2500, go to Line 00400 otherwise exit the UserCalc.
Line | CMD | OT | Operand 1 | OPER | OT | Operand2 | OT | Operand3 | If Goto | Else GoTo |
---|---|---|---|---|---|---|---|---|---|---|
00010 | IF | PC | 500 | GT | N | 2500 | 00400 | 99999 |