Function Reference


IsBool

Checks if a variable's base type is boolean.

IsBool ( variable )

Parameters

variable The variable/expression to check.

Return Value

Success: Returns 1.
Failure: Returns 0 if expression is not boolean type.

Remarks


Related

IsArray, IsFloat, IsInt, IsNumber, IsString, IsHWnd, IsBinary, IsPtr, VarGetType

Example


Local $b = True
If IsBool($b) Then MsgBox(0, "Success", "$b is a boolean variable")