Goto

From Game Editor

Jump to: navigation, search

Use the keyword goto to move to a certain point in the script. Here is an example:

mylabel:
if(x > 0)
{
  x -= 1;
  goto mylabel;
}

You can give the labels a name, but each label must have a unique name.

Although the C compiler supplies the goto keyword, its use isn't recomendable due to produce confuse codes.

Retrieved from "http://game-editor.com/Goto"