NE_OPERATOR

NE - Not Equal to #

The Not Equal To (NE) operator instructs the UserCalc to compare two Operands to check if they are NOT equal.

Statement
Executives do not pay for parking. All other employees pay $75 (assigned into PC 296)

LineCMDOTOperand 1OPEROTOperand2OTOperand3If Goto Else GoTo
00010 IFDBDUN.UNITS_CODENEAEXECUTIVE 0010099999
00100 LETPC296EQN75 99999
99999 EXIT 99999

Here, the NE operator compares the values in Operand 1 (the employee’s unit) to Operand 2 (the executive group) to see if they different. If they are not equal; the UserCalc goes to Line 00100 and assigns the fee.


Notes #

Click to create a new notes page