Table of Contents

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