Skip to main content

WhenClause

Structure to be used for the when stat formula clauses.

JSON Format

{
"type": "WhenClause",
"condition": ...,
"components": ...
}

Fields

FieldTypeRequiredDescription
conditionStatFormulaComponentThis stat formula should evaluate to a boolean. If the condition evaluates to true, the value from components will be returned by the When formula, provided this is the first clause whose condition evaluates to true.
componentsStatFormulaComponentThe formula whose value should be returned if the condition is satisfied.