IF_COMMAND
Back to current versionRestore this version

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.
LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse 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

LineCMDOTOperand 1OPEROTOperand2OTOperand3If GotoElse GoTo
00010 IF PC 500 GT N 2500 00400 99999