====== Getting started with Tcl: example 2 ======
This page is part of the Airplug documentation related to Tcl/Tk.\\
[[en:doc:pub:tcltk:start|Back to the Tcl/Tk documentation page]] /
[[en:doc:summary|Back to the Airplug documentation page]]
===== Using variables =====
==== Script ====
#!/usr/bin/tclsh
# variables
set x 5
set y $x
puts stdout "x = $x"
puts stdout "y = $y"
==== Output ====
x = 5
y = 5
----
This page is part of the Airplug documentation related to Tcl/Tk.\\
[[en:doc:pub:tcltk:start|Back to the Tcl/Tk documentation page]] /
[[en:doc:summary|Back to the Airplug documentation page]]