For the complete documentation index, see llms.txt. This page is also available as Markdown.

Conditionals

Conditional actions allow you to execute different actions depending on whether a condition is true or false.


[IF]

actions:
- "[IF] {player} == 'TectHost'"
- "[MESSAGE] Hello!"
- "[ENDIF]"

The actions between [IF] and [ENDIF] are only executed if the condition evaluates to true.

[ELSE IF]

actions:
- "[IF] {player} == 'TectHost'"
- "[MESSAGE] Hello TectHost!"
- "[ELSE IF] %vault_eco_balance% >= '1000'"
- "[MESSAGE] You are rich!"
- "[ENDIF]"

[ELSE IF] is only evaluated if every previous condition in the same block was false.

You can have as many ELSE IF blocks as you want.

[ELSE]

The ELSE block is executed only if none of the previous conditions matched.

Only one ELSE block is allowed per IF.

[ENDIF]

Marks the end of the conditional block.

Every [IF] must have a matching [ENDIF].

Nested Actions

Nested IF blocks work independently and must each have their own matching [ENDIF].

Example

Last updated