Flags & Debug
optOff
$optOff
The $optOff function is accepted so that scripts written for BDFD still run. In this engine its handler does nothing and returns an empty string: it does not change how the code is optimised or ordered.
Syntax
$optOff
Parameters
None. Any argument is refused (“Invalid argument count”).
Return value
An empty string.
Behavior
- Execution order and results are identical with or without this function.
- It never raises an error for a valid call.
Examples
Script ported from BDFD
$optOff
$replaceText[a;a;b]
The result is b, exactly as without the flag.
Notes
- Related no-op functions:
$alternativeParsing,$disableInnerSpaceRemoval,$disableSpecialEscaping.
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.