12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The second form of the for statement concerns associative arrays. Asyntactical featurefor these arrays (forms of which are available in the standard awk and gawkutilities) is available in <strong>spec</strong> as of release 4.01.05. The constructionfor ( identifier in assoc-array ) statementwill run through each element of the associative array assoc_array assigning toidentifier the string value of the index of each element. Note, though, the order inwhich the elements are assigned should be considered arbitrary.For two-dimensional associative arrays, the constructionfor ( identifier in assoc-array[expr] ) statementwill step through each element of assoc-array having expr has the first index.Break StatementThe statement break terminates the smallest enclosing while or for loop.Continue StatementThe statement continue passes control to the loop-test portion of the smallest enclosingwhile or for loop.Exit StatementThe statement exit terminates execution of the current parse tree and jumps controlback to command level just as if an error occurred or a ˆC was typed.INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION REFERENCE MANUAL 63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!