Features Overview
Lots of curly and square braces. Curly braces define blocks. Square braces define inline evaluation.
Basics
Basics
Manipulating variables
brush:tcl
set a 3
incr a
set a [expr $a +3]
Basic control
brush:tcl
if {$a >3} {
puts "Larger than 3"
} elseif {$a < 0} {
puts "Negative"
} else {
puts "Other"
}
Loops:
brush:tcl
# for {init} {test} {increment} {loop}
for { set i 0 } { $i < 10 } { incr i } {
puts "i = $i"
}
Functions
Feature 2
The following is placeholder text known as “lorem ipsum,” which is scrambled Latin used by designers to mimic real copy. Integer tempus, elit in laoreet posuere, lectus neque blandit dui, et placerat urna diam mattis orci. Quisque congue porttitor ullamcorper.
Feature 3
The following is placeholder text known as “lorem ipsum,” which is scrambled Latin used by designers to mimic real copy. Nullam sit amet nisi condimentum erat iaculis auctor. Aliquam bibendum, turpis eu mattis iaculis, ex lorem mollis sem, ut sollicitudin risus orci quis tellus.