$isBoolean
Returns whether the provided text is a boolean or not.
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]
How $message works?
🤖 Playground
Here you can understand how this function works.
Input:
$isBoolean[]Output:
Is boolean? true