IsBool

From AutoIt Wiki

Jump to: navigation, search

Checks if a variable's base type is boolean. Adapted from AutoIt docs.

Contents

Syntax

$chk = IsBool(var)

Parameters

varThe variable to check.

Return Value

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

Example

$b = true
If IsBool($b) Then Msgbox(0,"Success", "$b is a boolean variable")

Related Functions

IsArray IsFloat IsInt IsNumber IsString IsHWnd

Personal tools