WhenClause
Structure to be used for the when stat formula clauses.
JSON Format
{
"type": "WhenClause",
"condition": ...,
"components": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
condition | StatFormulaComponent | ✓ | This 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. |
components | StatFormulaComponent | ✓ | The formula whose value should be returned if the condition is satisfied. |