**Description**

The **EvalCaseGen Generator** evaluates equations using up to 5 variables. When true, it returns the value of parameter caseTrue; otherwise, it returns the value of the parameter caseFalse. Parameters caseTrue and caseFalse may take a constant value or reference another Attribute.

The allowable operations are:

- &&, and
- not, !
- greater than or equal to (gte), >=
- less than or equal to (lte), <=
- div, /
- mod, %
- or, ||
- equal, ==
- not equal, !=
- less than, <
- greater than, >

**Example 1:** var1 mod 2 == 0

**Example 2:** var1 < 5

**Example 3:** var1 > var2 && var2 < var3

**Generator Parameters**

The following parameters may be configured for the EvalCaseGen Generator. Items with an asterisk* are required.

**equation***- Contains the equation to be evaluated.**var1**- The first of five possible variables to be used in the equation.**var2**- The second of five possible variables to be used in the equation.**var3**- The third of five possible variables to be used in the equation.**var4**- The fourth of five possible variables to be used in the equation.**var5**- The fifth of five possible variables to be used in the equation.**caseTrue***- Contains a constant value or reference to another Attribute when evaluation is true.**caseFalse***- Contains a constant value or reference to another Attribute when evaluation is false.

**Note: **

- While comparing strings, make sure to add double quotes around the variables in use, for example, "var1".
- If you are comparing numbers and number is of type long, please append l (small case L), For example, var1l