Next: Commands Up: Tcl Previous: Datatypes

## Variables

Tcl allows the definition of variables with the set command. The command gets two parameters. The first parameter is the name of the variable, and the second parameter is the new value of the variable. To refer to the value of a variable, the dereferring symbol ``$`` is used. Alternatively, the set command called with no new value returns the current value of the variable.