I am having trouble seeing how an enumeration set can be used as the output of a data reference formula:

Say I have an enuration set such as

0 = OK

1 = low

2=high

Then I have a formula where A = value, B = lower limit, C = Upper Limit. I want to output the enumerated value so that if

A < B then low else if A > C the high else OK

I cannot seem to get this to work.

Thank you in adavnce for your responses.

Try using the numeric value for the enumeration value in the formula and specifying the attribute to have a value type of the enumeration set.

Here is the config string

A=valueattr;B=lowlimitattr;C=highlimitattr;[if A < B then 1 else if A > C then 2 else 0]