Skip to content
Variables has

$has — Tells whether a local variable exists.

Tells whether a local variable exists.

Syntax

$has[name]

Parameters

  • name (text, required) — Variable name.

Return Value

  • string.

Usage

$has[n] → "false"

Example

$sendMessage[$has[n]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.