$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
Is boolean?: `$isBoolean[$message]`
!example yes Is boolean?: true !example false Is boolean?: true !example text Is boolean?: false