isbool

This function determines whether the provided value is a bool or not.

This function does not generate an event.

Function

isbool(value)

Arguments

Argument Type Description
value any (required) The value to be tested.

Return value

Returns true if the given value is a boolean, else it returns false.

Example

This code shows some return values for isbool():

[
    isbool( true ),
    isbool( 'true' ),
    isbool( nil ),
];

Return value in JSON format

[
    true,
    false,
    false
]