NB - Is Not Between #
The Is Not Between (NB) operator checks to see if the value of Operand 1 is not between the 2 values defined in Operand 2 and Operand 3.
- Statement
- If the employee has worked for the company for at least 1 year, give a bonus of $100.00 in the last pay of the year (stored in PC 5000). Otherwise, give new employees a bonus of $50.00.
Line | CMD | OT | Operand 1 | OPER | OT | Operand2 | OT | Operand3 | If Goto | Else GoTo |
---|---|---|---|---|---|---|---|---|---|---|
00010 | LET | V | YEARS SERVICE | YBT | DB | EEM.HIRE_DATE | $S | PERIOD-END-DATE | 00020 | |
00020 | PPE | EY | $S | PERIOD-END-DATE | 00100 | 99999 | ||||
00100 | IF | V | YEARS SERVICE | NB | N | 1 | N | 99 | 00200 | 00300 |
00200 | LET | PC | 5000 | EQ | N | 50 | 99999 | |||
00300 | LET | PC | 5000 | EQ | N | 100 | 99999 | |||
99999 | EXIT | 99999 |
Line 00100 checks to see if the years of service (Operand 1) is not between 1and 99 years (Operand2 and 3).