#!/usr/bin/tclsh set myVariable {red green blue} puts [lindex $myVariable 2] set myVariable "red green blue" puts [lindex $myVariable 1]
#!/usr/bin/tclsh set myVariable "hello world" puts $myVariable set myVariable {hello world} puts $myVariable
#!/usr/bin/tclsh set myVariable hello puts $myVariable
#!/usr/bin/tclsh set myVariable 18 puts [expr $myVariable + 6 + 9]
#!/usr/bin/tclsh set myVariable 18 puts $myVariable
#!/usr/bin/tclsh puts "Hello\nWorld"
#!/usr/bin/tclsh set a 3 puts $a
#!/usr/bin/tclsh puts [expr 1 + 6 + 9]
#!/usr/bin/tclsh puts stdout "Hello, world!"
#!/usr/bin/tclsh puts "Hello, world!"
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more