Bool expressions are used to evaluate conditions and should always return in a true or false value.
Please note that each of these expressions use == as the equality operator.
Here are a few examples of commonly used Bool expressions:
Evaluate a single UKG field:
Employment.EmployeeStatusCode == "A"
All active employees return true, non-active employees return false
Employment.EmployeeStatus == "Active"
All active employees return true, non-active employees return false
Employment.OnboardingStatus == "Launched"
All employees whose onboarding status is "Launched" return true, non-launched employees return false
Evaluate multiple fields using the && (and) operator:
Employment.EmployeeStatusCode == "A" && Employment.EmployeeTypeCode == "REG"
Employment.OnboardingStatus == "Launched" && Employment.EmployeeTypeCode == "REG"
Employment.EmployeeStatus == "Active" && Employment.WorkerType == "Regular"
All and regular employees return true, all other employees return false
Evaluate multiple fields using the || (or) operator:
Employment.EmployeeStatusCode == "A" || Employment.EmployeeStatusCode == "L"
Employment.OnboardingStatus == "Launched" || Employment.OnboardingStatus == "Pending Review"
Employment.EmployeeStatus == 'Active' || Employment.EmployeeStatus == 'Leave'
All 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')
Employment.EmployeeTypeCode = "REG"&& (Employment.OnboardingStatus == "Launched" || Employment.OnboardingStatus == "Pending Review")
All regular employees return true, all other employees return false
Comments
0 comments
Please sign in to leave a comment.