로딩
요청 처리 중입니다...

Looping 102 - For and incr

 Looping 102 - For and incr

Tcl supports an iterated loop construct similar to the for loop in C. The for command in Tcl takes four arguments; an initialization, a test, an increment, and the body of code to evaluate on each pass through the loop.

The syntax for the for command is: for start test next body During evaluation of the for command, the start code is evaluated once, before any other arguments are evaluated. After the start code has been evaluated, the test is evaluated.

If the test evaluates to true, then the bo...