Tcl

From Devpit
Jump to: navigation, search

Tcl is a string based command language that is very simple and easy to learn.

  • Each line is in the form of command arg1 arg2 arg3
  • " " will substitute
  • { } is interpreted literally
  • [ ] is interpreted as a tcl command and replaced with the output of the command (analogous to ` `)
#!/usr/local/bin/tclsh8.4

set a "Hello World!"
puts $a

if {$a == "Hell"} {
        puts "1"
} else {
        puts "2"

}

See Also

External Links