Variables
toggleVar
$toggleVar — Flips a variable between true and false and returns the new value
Flips a variable between `true` and `false` and returns the new value. An empty variable counts as `false`.
Syntax
$toggleVar[variable;(scope);(target);(guildID)]
Parameters
- variable (text, required) — The variable name.
- scope (text, optional) — Same as
$increment. Default:user. - target (ID, optional) — Same as
$increment. - guildID (ID, optional) — Same as
$increment.
Return Value
trueorfalse.
Usage
$toggleVar[notifications] → "true"
Example
$sendMessage[$toggleVar[notifications]]
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.