Evaluates an expression and stores the result in a variable.
Var := Expression
The name of the output variable in which to store the result of Expression.
See expressions and the examples below for details.
The colon-equal operator (:=) is optimized so that it performs just as quickly as the equal operator (=) for simple cases such as the following:
x := y ; Same performance as x = %y% x := 5 ; Same performance as x = 5 x := "literal string" ; Same performance as x = literal string
The words True and False are built-in variables containing 1 and 0. They can be used to make a script more readable as in these examples:
CaseSensitive := false ContinueSearch := true
It is possible to create a pseudo-array with this statement and any others that accept an output variable. This is done by appending a variable reference to the output variable name, e.g. Array%i% := Var/100 + 5
. See Arrays for more details.
Expressions, If (expression), Functions, SetEnv, EnvSet, EnvAdd, EnvSub, EnvMult, EnvDiv, If (legacy), Arrays