Geas MUD, enter the Aventure!
Geas Home | Play the Game

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ] The block statement

There are a lot of statements, for example conditional statements, that in certain circumstances execute one specified statement and never otherwise. Suppose you want to have several statements executed and not just a single one? Well, there's a special statement called block statement that will allow you to do that. A block is defined as starting with a { and ending with a }. Within that block you may have as many statements of any kind (including variable definitions) as you like. The block statement is not ending with a ;, even though it wouldn't matter if you accidentally put one there.

This document was generated by Ronny Wikh on July, 8 2003 using texi2html