L3DT users' wiki
Large 3D terrain generator

goto

Description

Transfer script execution to the specified script line.

Note line numbers start at 0.

Function prototype

void goto <int:line>

Arguments

Name Type Comment
line int The zero-based line number to which execution should be transferred.

Return value

None (void).

Example

goto 3 // jump to line #3
echo "1"
echo "2"
echo "3" // goto should jump to this line
echo "4"

… the output of which is written to the event log by echo as:

3
4

Comments

See also

 
plugins/general/zeoscript/reference/functions/goto.txt · Last modified: 2017/08/31 05:22 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki