IBM
Contents Index Previous Next



The GOTO Statement


In order to be able to express repetitive behaviour in a convenient way, TTCN allows statement lines to be labelled so that jumps may be made to them from later points in the tree. A GOTO is denoted either by:

or:

Infinite loops should be avoided, i.e. entering the GOTO loop should always depend on some event occurring or condition being fulfilled.

Figure 57 : Using GOTO in a behavior tree

The following rules should be followed:


http://www.ibm.com/rational
Contents Index Previous Next