Usage:

goto label

Example:

goto upgradecot

Allows you to jump to any label, anywhere in the script.

In the following example, the bot will read the first line and print the first message following it, then jump to the third label and print that message, then jump to the second label and print that message twice, and then for lack of another jump it will continue down the script to the third label again, print that message, then jump back to the second label.. thus entering an endless loop of the second and third label.

This produces the following results in the bot:


CategoryAllScripts CategoryFunctionScripts

Goto (last edited 2012-09-09 20:56:20 by Inanna)