Skip to main content

WhenClause

Structure to be used for the when stat formula clauses.

Returns

T

JSON Format

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

RPG Script

This component can be written in RPG Script as:

cond1 -> value1

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.
@type bool
componentsStatFormulaComponentThe formula whose value should be returned if the condition is satisfied.
@type T