Use the CASE statement in preference to the CaseAction action. The syntax of the CASE statement is:
CASE variable OF
WHEN value:
statements
WHEN value:
statements
<...> OTHERWISE:
statements
ENDCASE
You can have no more than sixteen WHEN clauses in a CASE statement because the CASE statement is translated into a Case action when it is imported into a state table.