Skip to content

Defined

Determines whether a variable, array, or timer with this name exists. The variable, array or timer must not be enclosed with ${}.

Forms

bool Defined[name]

Returns true if the given variable name is defined.

Examples

/if (${Defined[varname]}) {
    /echo ${varname}
}