Function Reference


IsBinary

Checks if a variable or expression is a binary type.

IsBinary ( expression )

Parameters

expression The variable or expression to check.

Return Value

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

Remarks

See language datatypes for a detailed description.

Related

Binary, BinaryToString, IsArray, IsBool, IsFloat, IsHWnd, IsInt, IsMap, IsNumber, IsString, StringToBinary, VarGetType

Example

#include <MsgBoxConstants.au3>

Local $dBinary = Binary("0x00204060")
Local $sString = "0x00204060"

MsgBox($MB_SYSTEMMODAL, "", "Returns 1 as the variable is binary: " & IsBinary($dBinary))
MsgBox($MB_SYSTEMMODAL, "", "Returns 0 as the variable is a string: " & IsBinary($sString))