Goto

From Game Editor

Revision as of 18:50, 29 August 2008 by Asmodeus (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
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"