$isBoolean
Returns whether the provided text is a boolean or not.
“true” means the text is a boolean, “false” means it isn’t.
Syntax
$isBoolean[Text]
Parameters
Text
(Type: String || Flag: Emptiable)
: The text to check.
Supported Booleans
Positive | Negative |
---|---|
true | false |
yes | no |
on | off |
enable | disable |
Example
$nomention
Is boolean?: `$isBoolean[$message]`
true
true
false