Eval

From AutoIt Wiki

Jump to: navigation, search

Evaluates a string statement. Adapted from AutoIt docs.

Contents

[edit] Syntax

Eval(string)

[edit] Parameters

stringString representation of a statement.

[edit] Return Value

Success: Returns the value of the variable.
Failure: Returns empty string and sets @error to 1

[edit] Example

Dim $a_b = 12
$s = Eval("a" & "_" & "b")  ; $s is set to 12

$s =Eval("c")  ; $s = "" and @error = 1

[edit] Related Functions

IsDeclared Assign Execute

Personal tools