IsBool
From AutoIt Wiki
Checks if a variable's base type is boolean. Adapted from AutoIt docs.
Contents |
Syntax
$chk = IsBool(var)
Parameters
| var | The 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")