Variables
letSum
$letSum — Adds a number to a local variable (0 when unset).
Adds a number to a local variable (0 when unset).
Syntax
$letSum[name;value]
Parameters
- name (text, required) — Variable name.
- value (number, required) — Number to add.
Return Value
- string.
Usage
$letSum[n;2] → n = 2
Example
$let[n;1]
$letSum[n;2]
$sendMessage[$get[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.