Main Help → All Commands → Language Reference → IfDef
The ifDef command is used in conditional blocks to check if a variable is defined.
ifDef
ifDef #varName