$isBoolean

Returns whether or not the provided 'text' is a boolean.

🧙‍♂️ 'true' means the text is a boolean, 'false' means it isn't.

Supported Booleans

PositiveNegative
truefalse
yesno
onoff
enabledisable

Usage

$isBoolean[text]

Parameters

  • text (Type: String || Flag: Emptiable): The text to check.

Example

$nomention
$isBoolean[$message]

example