Require
Require
Stop the command unless a condition is met, optionally running fallback steps
Fields
| Field | Type | Required | Description |
|---|---|---|---|
conditions | condition tree | yes | Same grammar as if.condition. |
onFail | array of steps | no | Runs when the condition fails; the ENTIRE run halts after onFail finishes, not just this branch. |
Example
{
"id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
"type": "require",
"conditions": {
"op": ">=",
"a": {
"path": "user.coins"
},
"b": {
"literal": 50
}
},
"onFail": []
}Updated about 14 hours ago
Did this page help you?
