Goto

From Game Editor

Revision as of 10:27, 30 August 2008 by Asmodeus (Talk | contribs)
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.

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