for man page on BSDOS

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDOS logo
[printable version]



for(n)		      Tcl Built-In Commands		   for(n)

_________________________________________________________________

NAME
       for - ``For'' loop

SYNOPSIS
       for start test next body
_________________________________________________________________

DESCRIPTION
       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  exe-
       cute  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  immedi-
       ately.  The operation of break and continue are similar to
       the corresponding statements in C.  For returns	an  empty
       string.

KEYWORDS
       for, iteration, looping

Tcl								1

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server BSDOS

List of man pages available for BSDOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net