ZonlyIf

Halts execution with a custom error message if the given condition evaluates to false.

Syntax

ZonlyIf{condition;error}

Arguments

NameTypeRequiredDefault
conditionstringYes-
errorstringYes-

Example

ZonlyIf{ZisSlash{}==true;This command only works as a slash command.}