Execute

From AutoIt Wiki

Jump to: navigation, search

Executes an expression. Adapted from AutoIt docs.

Contents

Syntax

Execute(string)

Parameters

stringString representation of an expression to be executed.

Return Value

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

Example

$a=1
$v=Execute("$a+1")  ; $v is set to 2

Related Functions

Assign Eval Call

Personal tools