V - Local Variable#
Local Variables are defined within UserCalcs and hold their value only for the life of the current UserCalc. They are used to hold temporary or working values that are necessary during a Calculation, Function or Qualifier. Local variables Do NOT hold their value beyond the life of the current UserCalc and therefore, cannot be used to pass values to Functions or Qualifiers. Local Variables must exist prior to creating a line within a UserCalc that refers to it. Statement: Let the date variable ‘Probation Date’ be the employee’s hire date plus 3 months. Once the calculation is preformed, the UserCalc then goes to Line 00200.
Line | CMD | OT | Operand 1 | OPER | OT | Operand2 | OT | Operand3 | If Goto | Else GoTo |
---|
Statement: Issue a message if the garnishment is less than original deduction.
Line | CMD | OT | Operand 1 | OPER | OT | Operand2 | OT | Operand3 | If Goto | Else GoTo |
---|
Local Variables may be created, viewed, modified or deleted in the Variables tab of the Define UserCalcs (IMUC) form. Further local variable details can be found in section – 3.1.1. UserCalc Local Variables data is stored in the P2K_AM_USER_CALC_VARIABLES table.