Besides being function arguments, variables can also be defined explicitly. It is important to note that a "variable" in TL-Script can never change its value after it has been defined.

{
  var1 = [expr1];
  var2 = [expr2];

  [result-expression-using-$var1-and-var2]; 
}

The above example assigns to the variables var1 and var2 the result of the evaluations of the expressions [expr1] and [expr2]. The result of the total expression is the evaluation of [result-expression-using-$var]. This expression can access the variables $var1 and $var2 defined above.

Binding a value to a variable can be useful if the result expression requires the value calculated in this way more than once.