Bool expressions are used to evaluate conditions and should always return in a true or false value.
Here are a few examples of commonly used Bool expressions:
Please note that each of these expressions use == as the equality operator.
Evaluate a single UKG field:
Employment.EmployeeStatusCode == 'A'
Employment.EmployeeStatus == 'Active'
All active employees return true, non-active employees return false
Evaluate multiple fields using the && (and) operator:
Employment.EmployeeStatusCode == 'A' && Employment.EmployeeTypeCode == 'REG'
Employment.EmployeeStatus == 'Active' && Employment.WorkerType == 'Regular'
All active and regular employees return true, all other employees return false
Evaluate multiple fields using the || (or) operator:
Employment.EmployeeStatusCode == 'A' || Employment.EmployeeStatusCode == 'L'
Employment.EmployeeStatus == 'Active' || Employment.EmployeeStatus == 'Leave'
All active or on leave employees return true, all other employees return false
Evaluate multiple fields using multiple operators and parentheses:
Employment.EmployeeTypeCode = 'REG' && (Employment.EmployeeStatusCode == 'A' || Employment.EmployeeStatusCode == 'L')
Employment.WorkerType == 'Regular' && (Employment.EmployeeStatus == 'Active' || Employment.EmployeeStatus == 'Leave')
All regular employees that are either active or on leave return true, all other employees return false
Comments
0 comments
Please sign in to leave a comment.