IsString

From AutoIt Wiki

Jump to: navigation, search

Checks if a variable is a string type. Adapted from AutoIt docs.

Contents

Syntax

$chk = IsString(var)

Parameters

varThe variable to check.

Return Value

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

Example

$x = IsString("foo") ; returns 1

Related Functions

IsArray IsFloat IsInt IsNumber IsBool IsHWnd IsBinary

Personal tools