var
The var keyword is used to indicate that a variable is being defined. A variable is any item in the payroll formula that may contain a numeric, text or date value. A variable with no associated data type is considered a temporary variable and is not to be stored in the database or paysheet.
Syntax:
var <name> [= <expression>];
Example:
// this is initialized with 10,000
var BasicRate = 10000;
var DailyRate = BasicRate / 10;
var DaysWorked = 10;
var GrossPay = DaysWorked * DailyRate;