Home / lang / isboolean 
IsBoolean
Syntax
Result = IsBoolean ( vExpression ) AS Boolean
Result = Boolean? ( vExpression ) AS Boolean

Returns TRUE if the vExpression is Boolean.

Example
PRINT IsBoolean(FALSE), IsBoolean((1 > 0) AND (2 > 1)), IsBoolean(IsBoolean("no matter what"))

True True True

Example
PRINT IsBoolean(-1), IsBoolean(NULL)

False False


See also
Datatype Functions