Tcl · Lesson 4

Control flow: if, for, foreach, while and switch

Branch with if and switch, loop with for, foreach and while, and leave or skip iterations with break and continue.

Lessons · Tcl · Lesson 4 of 10

Control flow: if, for, foreach, while and switch

Branch with if and switch, loop with for, foreach and while, and leave or skip iterations with break and continue.

Illustration for Tcl
Branch with if and switch, loop with for, foreach and while, and leave or skip iterations with break and continue.