From AutoIt Wiki
Assign assigns a value to a variable. In most situations simple assignment may be used in place of Assign, Eval() to read, and IsDeclared() to check. Adapted from AutoIt docs.
Syntax
$x = Assign("varname","value" [, flag])
Parameters
| varname | Name of the variable to assign. |
| value | Value to be assigned to the variable. |
| flag | Controls assignment.(Optional) |
Flags
Return Value
Success returns 1.
Failure returns 0 if unable to create/assign the variable.
Example
Global $var = 0 ; is equivalent to
Assign("var",0,2)
Related Functions
Eval IsDeclared