Math & Text
advancedReplace
$advancedReplace — Replaces several texts in one call.
Replaces several texts in one call.
Syntax
$advancedReplace[text;match;replacement]
Parameters
- text (text, required) — The text.
- match (text, required) — Text to find.
- replacement (text, required) — Text that replaces it (then more match/replacement pairs).
Return Value
- string.
Usage
$advancedReplace[abc;a;1;b;2] → "12c"
Example
$sendMessage[$advancedReplace[abc;a;1;b;2]]
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.