Function Reference


IsBool

Checks if a variable's base type is boolean.

IsBool ( variable )

Parameters

variable The variable/expression to check.

Return Value

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

Remarks

See language datatypes for a detailed description.

Related

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

Example

#include <MsgBoxConstants.au3>
Local $bBoolean= True
If IsBool ($bBoolean)Then
MsgBox ($MB_SYSTEMMODAL,"","The variable is boolean")
Else
MsgBox ($MB_SYSTEMMODAL,"","The variable is not boolean")
EndIf

AltStyle によって変換されたページ (->オリジナル) /