PLAYGROUND (experimental)

stop

Halt script execution with an optional exit code (default: 0)
stop(
    [code=0]
)

Halt script execution with an optional exit code (default: 0)

Syntaxe

if (error) { stop(1); }

Arguments

NameTypeRequiredDefaultDescription
code-0Exit code