| Forum Index > Tcl/Tk > For loop | |
| Author | Message |
|
EXAMPLES
Print a line for each of the integers from 0 to 10: Either loop infinitely or not at all because the expression being evaluated is actually the constant, or even generate an error! The actual behaviour will depend on whether the variable x exists before the for command is run and whether its value is a value that is less than or greater than/equal to ten, and this is because the expression will be substituted before the for command is executed. Print out the powers of two from 1 to 1024: |
|
|
nice! keep on going :luigi:
|
|
| Forum Index > Tcl/Tk > For loop | |