Function Reference


IsString

Checks if a variable is a string type.

IsString ( variable )

Parameters

variable The variable/expression to check.

Return Value

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

Remarks

See language datatypes for a detailed description.

Related

IsArray, IsBinary, IsBool, IsFloat, IsHWnd, IsInt, IsNumber, IsPtr, String, VarGetType

Example

#include <MsgBoxConstants.au3>

Local $sString = "This is a string"
If IsString($sString) Then
    MsgBox($MB_SYSTEMMODAL, "", "The variable is a string")
Else
    MsgBox($MB_SYSTEMMODAL, "", "The variable is not a string")
EndIf