*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> Tcl/for (3)              
Title
Content
Arch
Section
 

Contents


for(3Tcl)							     for(3Tcl)


NAME    [Toc]    [Back]

     for - ``For'' loop

SYNOPSIS    [Toc]    [Back]

     for start test next body

DESCRIPTION    [Toc]    [Back]

     For is a looping command, similar in structure to the C for statement.
     The start,	next, and body arguments must be Tcl command strings, and test
     is	an expression string.  The for command first invokes the Tcl
     interpreter to execute start.  Then it repeatedly evaluates test as an
     expression; if the	result is non-zero it invokes the Tcl interpreter on
     body, then	invokes	the Tcl	interpreter on next, then repeats the loop.
     The command terminates when test evaluates	to 0.  If a continue command
     is	invoked	within body then any remaining commands	in the current
     execution of body are skipped; processing continues by invoking the Tcl
     interpreter on next, then evaluating test,	and so on.  If a break command
     is	invoked	within body or next, then the for command will return
     immediately.  The operation of break and continue are similar to the
     corresponding statements in C.  For returns an empty string.

KEYWORDS    [Toc]    [Back]

     for, iteration, looping


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
afSetLoopStartFrame IRIX set the start/end frame and loop count from an AFfilehandle structure for a specified loop.
afGetLoopStartFrame IRIX get the start/end frame and loop count from an AFfilehandle structure for a specified loop.
continue IRIX Skip to the next iteration of a loop
losetup Linux set up and control loop devices
eventinit IRIX Use the Tk event loop without the rest of Tk
DELAY FreeBSD busy loop for an interval
scsiha IRIX SCSI bus and loop operation driver
endtrim IRIX delimit a NURBS surface trimming loop
bgntrim IRIX delimit a NURBS surface trimming loop
glubegintrim IRIX delimit a NURBS trimming loop definition
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service