Variables
letSub
$letSub — Subtracts a number from a local variable.
Subtracts a number from a local variable.
Syntax
$letSub[name;value]
Parameters
- name (text, required) — Variable name.
- value (number, required) — Number to subtract.
Return Value
- string.
Usage
$letSub[n;2] → n = -2
Example
$let[n;10]
$letSub[n;4]
$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.