Top
Back: 3.5.5 Type conversion and casting
Forward: 3.6 Input and output
FastBack: 3. General concepts
FastForward: 4. Data types
Up: 3.5 The SINGULAR language
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

3.5.6 Flow control

A block is a sequence of commands surrounded by { and }.

 
{
   command;
   …
}

Blocks are used whenever SINGULAR is used as a structured programming language. The if and else structures allow conditional execution of blocks (see if, else). for and while loops are available for repeated execution of blocks (see for, while). In procedure definitions the main part and the example section are blocks as well(see proc).


Top Back: 3.5.5 Type conversion and casting Forward: 3.6 Input and output FastBack: 3. General concepts FastForward: 4. Data types Up: 3.5 The SINGULAR language Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.