tclControl Structures


Syntax

  • if expr1 ?then? body1 elseif expr2 ?then? body2 ... ?else? ?bodyN?
  • for start test next body
  • while test body
  • foreach varlist1 list1 ?varlist2 list2 ...? body

Remarks

Documentation: break, for, foreach, if, switch, uplevel, while