...
IF
a rule exists on this lineELSE
if no rules above match, use this result$value_type
value type name$empty
special handler for empty values==
equals!=
does not equalAND
links multiple conditionsTHEN
result follows+
concatenate with another value type or text
...
If the row is the top-up summary row, then return the total value (
$total
); otherwiseIf the row is the paid breaks summary row, then return the number of hours (
$hours
); otherwiseIf the row is a contract timesheet entry, then return the unit rate (
$unit_rate
); otherwiseReturn the hourly rate (
$hourly_rate
)
Example 4
Code Block |
---|
IF $location__division != $empty THEN $location__division
IF $client__division != $empty THEN $client__division
IF $row_type == timesheet_entry THEN No Division |
If the row has a Location Division, then return its name
If the row has a Client Division, then return its name
If the row is a timesheet entry return the text “No division”
Otherwise, return nothing