Statements

   Print  Previous  Next

Introduction

There are different statements available in a script, for example the if-statement or the call statement to call functions. Those will be described later on in this chapter. Another statement is the expression statement. A statement is an expression statement if it is followed by a semicolon. For example:

i = i + 1;

InitEffect();

 

 

Using Blocks

A block is started and finished (opened and closed) with the help of curly brackets. Blocks may be used to group different statements together. There are also different statements which require a block if more than one statement should be executed. For example the while or the if statement are good examples.