Conditionals
Control the flow of your game based on conditions
Description
{'Conditional': {
'Condition': function() { /* return true/false or string */ },
'True': '<statement>',
'False': '<statement>'
}}Basic Structure
Property
Type
Description
Examples
Boolean Condition
Conditional Jump
Multiple Branches (String Returns)
Numeric String Branches
Complex Condition
Important Notes
String vs Boolean
Numbers as Keys
Async Conditions
Rollback Behavior
Related Actions
Last updated
Was this helpful?