Setting Eligibility Requirements

When you set up plan eligibility, you enter the conditions for eligibility in an IF or IN clause. If you use an IF statement, the system assumes that employees are eligible when the condition is true. For this reason, IF clauses don't use a final assignment (or THEN) clause. This also means you can't have more than one IF in the definition. IN clauses, on the other hand, do require assignments, and you can have as many as you like in the statement.

Using IN Clauses

Use a clause with the keyword IN to check for several different values for a single field. For example, you can check whether the employee status is in the set of values active, deceased, leave, and leave with pay. When you use IN clauses, you assign a temporary variable to the result. You can then reference that variable from within an IF clause.

Key Operand1 Op1 Operand2 Op2 Operand3 Type

IN

UNION_CD

 

"81"

 

 

FUNCTION

 

"82"

 

"83"

=

TEMPC01

FUNCTION

IF

TEMPC01

==

"Y"

AND

 

BOOLEAN

 

EMPL_TYPE

==

"S"

 

 

BOOLEAN

This is a useful technique when you're checking a large set of valid values because the IN statement uses an implied OR condition. It separates all the OR clauses from the AND clauses of the final IF statement.

You can use an IN clause as your eligibility criteria as long as you make a final assignment to the definition name, as illustrated in this table:

Key Operand1 Op1 Operand2 Op2 Operand3 Type

IN

UNION_CD

 

"81"

 

 

FUNCTION

 

"82"

 

"83"

=

ELIG_DEF

FUNCTION