IB - Is Between#

The Is Between (IB) operator checks to see if Operand 1 can be found between the values of Operand 2 and Operand 3.

Statement
If the employee has worked for the company for between 5 and 10 years, give a bonus of $100.00 in the last pay of the year (stored in PC 5000).

LineCMDOTOperand 1OPEROTOperand2OTOperand3If Goto Else GoTo
00010LETVYEARS SERVICEYBTDBEEM.HIRE_DATE$SPERIOD-END-DATE00020
00020 PPE EY$SPERIOD-END-DATE 0010099999
00100 IFVYEARS SERVICEIBN5N100020099999
00200 LETPC5000EQN100 99999
99999 EXIT 99999

Line 00100 instructs the UserCalc to check if the years of service (Operand 1) are between 5 (Operand 2) and 10 (Operand 3) years.