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 componentswill be returned by theWhenformula,  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. |