DefaultIfNull
This formula allows you to conditionally return a default value if another
one is null.
JSON Format
{
"type": "defaultIfNull",
"components": ...,
"default_components": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
components | StatFormulaComponent | ✓ | The formula for the main value. If this formula returns a non-null value, the DefaultIfNull formula will return that value. |
default_components | StatFormulaComponent | ✓ | The formula for the default value to return in case the one in components returns a null value. |