IsKeyword

From AutoIt Wiki

Jump to: navigation, search

Checks if a variable is a keyword (e.g. Default). Adapted from AutoIt docs.

Contents

Syntax

$chk = IsKeyword(var)

Parameters

varThe variable to check.

Return Value

Success: Returns 1 if variable is a keyword.
Failure: Returns 0 if variable is not a keyword.

Example

$a = default
If IsKeyword($a) Then MsgBox(0,"Ok", "Yes it is")
Personal tools