Bool Expressions

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.EmployeeStatus == 'Active'

All active employees return true, non-active employees return false

 

Evaluate multiple fields using the && (and) operator:

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.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.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

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.