Skip to main content
Skip table of contents

Expr Language - Conditional Expressions

Simple "IF" expressions can be declared using the IF() function, but for more elaborate IF cases, with multiple conditions and/or requiring an ELSE option, a conditional expression can be used.

CODE
WITH total = x + y:
  IF total > 0:
     x / total
  ELSE : error

Note: the ":" after "ELSE" is optional – in the example above, we've included it for readability.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.