Getting started with Tcl: example 2

This page is part of the Airplug documentation related to Tcl/Tk.
Back to the Tcl/Tk documentation page / 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

<br/>


This page is part of the Airplug documentation related to Tcl/Tk.
Back to the Tcl/Tk documentation page / Back to the Airplug documentation page

 
Back to top
en/doc/pub/tcltk/example-02.txt · Last modified: 2017/04/05 16:01 (external edit)
 
 
Driven by DokuWiki