This functionality is only available for certain module packages.

You are here: Reference > Formula Language > Formulas > Basic types > Conditions > switch


Is used to define conditions. The following comparisons are made:

Expression = Expression1 (any expressions)

Expression8>=Expression<=Expression9 (Integer or Double)

Contrary to if-then-else-endif the method is always executed independent of an input condition. The case expressions have to be unique! A default expression has to be assigned always, because the formula language always has to deliver a value.

switch <Expression> {
case Expression1: Expression2
case Expression3: Expression4
case Expression5: case Expression6: Expression7
case Expression8..Expression9: Expression10
case Expression11. case Expression12..Expression13: Expression14
else Default expression
Return value