IsBinary

From AutoIt Wiki

Jump to: navigation, search

Checks if a variable or expression is a binary type. Adapted from AutoIt docs.

Contents

Syntax

$chk = IsBinary(expr)

Parameters

exprThe expression to check.

Return Value

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

Example

$bin = Binary("0x00204060")
$str = "0x00204060"

msgbox(0, "IsBinary $bin", IsBinary($bin))
msgbox(0, "IsBinary $str", IsBinary($str))

Related Functions

IsArray IsFloat IsInt IsString IsNumber IsBool IsHWnd

Personal tools