This page (revision-5) was last changed on 26-Nov-2021 10:22 by RForbes

This page was created on 26-Nov-2021 10:22 by JMyers

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
5 26-Nov-2021 10:22 1 KB RForbes to previous
4 26-Nov-2021 10:22 1 KB JMyers to previous | to last
3 26-Nov-2021 10:22 1 KB JMyers to previous | to last
2 26-Nov-2021 10:22 1 KB JMyers to previous | to last
1 26-Nov-2021 10:22 1 KB JMyers to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed one line
$P - Parameter
!!$P - Parameter
At line 3 added one line
At line 4 changed one line
Statement: If the employee has worked 2000 hours in the current year, award the employee the full entitlement - $200. If the employee has worked more than 1040 hours in the current year, award the employee 50% of the entitlement. Otherwise, award the employee 20% of the entitlement.
;Statement:If the employee has worked 2000 hours in the current year, award the employee the full entitlement - $200. If the employee has worked more than 1040 hours in the current year, award the employee 50% of the entitlement. Otherwise, award the employee 20% of the entitlement.
At line 6 changed 15 lines
Line 00010 Captures the value of the entitlement, $200
Line 00100 Checks if the employee worked more than 2000 hours.
I f so, the UserCalc goes to Line 99999 which returns a value of the full amount of the entitlement, $200.
If not, the UserCalc goes to Line 00200
Line 00200 Checks to see if the employee worked more than 1040 hours.
If so, the UserCalc goes to Line 00300 to calculate 50% of the entitlement. $200 x .50 = $100
I f not, the UserCalc goes to Line 00400 to calculate 20% of the entitlement. $200 x .20 = $40
Line 00300 & 00400 Once the calculation is complete in these lines, the UserCalc goes to Line 99999 to return the appropriate value.
Line CMD OT Operand 1 OPER OT Operand2 OT Operand3 If Goto Else GoTo
00010 LET V ENTITLEMENT EQ $P NUMBER-PARAMETER 00100
00100 IF EY TIME WORKED GT N 2000 99999 00200
00200 IF EY TIME WORKED GT N 1040 00300 00400
00300 LET V ENTITLEMENT MLT V ENTITLEMENT N 0.50 99999
00400 LET V ENTITLEMENT MLT V ENTITLEMENT N 0.20 99999
99999 RET V ENTITLEMENT 99999
|Line 00010|Captures the value of the entitlement, $200
|Line 00100|Checks if the employee worked more than 2000 hours. \\If so, the UserCalc goes to Line 99999 which returns a value of the full amount of the entitlement, $200.\\If not, the UserCalc goes to Line 00200
|Line 00200|Checks to see if the employee worked more than 1040 hours.\\If so, the UserCalc goes to Line 00300 to calculate 50% of the entitlement. $200 x .50 = $100\\If not, the UserCalc goes to Line 00400 to calculate 20% of the entitlement. $200 x .20 = $40
|Line 00300 & 00400|Once the calculation is complete in these lines, the UserCalc goes to Line 99999 to return the appropriate value.
||Line||CMD||OT||Operand 1||OPER||OT||Operand2||OT||Operand3||If Goto|| Else GoTo
|00010| LET| V| ENTITLEMENT| EQ| $P|NUMBER-PARAMETER| | | 00100|
|00100| IF| EY| TIME WORKED| GT| N| 2000| | |99999| 00200
|00200| IF| EY| TIME WORKED| GT| N| 1040| | |00300| 00400
|00300| LET| V| ENTITLEMENT| MLT| V| ENTITLEMENT| N| 0.50| 99999|
|00400| LET| V| ENTITLEMENT| MLT| V| ENTITLEMENT| N| 0.20| 99999 |
|99999| RET| V| ENTITLEMENT| | | | | | 99999|
----
![Notes|Edit:Internal.$P_VARIABLE]
[{InsertPage page='Internal.$P_VARIABLE' default='Click to create a new notes page'}]