$isBoolean

Returns whether the provided text is a boolean or not.

Note

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

What is this?

How $message works?

🤖 Playground

Here you can understand how this function works.

Input:

$isBoolean[]

Output:

Is boolean? true