if %cond:EXPR% — Blocks

if %cond:EXPR%
Control Flow1.0.0

Description

Conditionally executes a block of code. When used at the top level, wraps the block in a preload method that runs on script load.

Allowed Contexts

Root LevelInside Block

Examples

on join: if player is sneaking: send player "You are sneaking!"

All Possible Usages (1)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

if <cond>

Related (Control Flow)