home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource
/
1_17.tcl
< prev
next >
Wrap
Text File
|
2003-04-16
|
137b
|
13 lines
#
# Example 1-17
# Using info to determine if a variable exists.
#
if {![info exists foobar]} {
set foobar 0
} else {
incr foobar
}