next up previous contents index
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.



Harry Beker
Thu Feb 29 18:06:38 MET 1996