$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

PositiveNegative
truefalse
yesno
onoff
enabledisable

Example

$nomention
$isBoolean[$message]

example