goto: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Removed the incorrect assertion that labels are case sensitive)
mNo edit summary
Line 18: Line 18:
'''Description:'''
'''Description:'''


In script only: Go to given '''label'''.
In script only: Go to given '''label'''.<br>
'''Note:''' String argument is used here.<br>
Be sure to use double quotes around label name in '''goto'''.


'''Note:''' Be sure to use double quotes around label name in '''goto'''.


Define the label with '''#'''.
'''Example:'''
 
'''goto''' "Loop"
 
 
'''Comments:'''


'''Example:'''
Define the label with '''#'''.
 
Note that loops should always have a time delay.


'''goto''' "Labelname"<br>
[[Triggers]] poll every 0.5 seconds so you rarely need a loop faster than that.
.<br>
.<br>
.<br>
''#Labelname''

Revision as of 03:22, 23 May 2006


goto label


Operand types:

label: String

Type of returned value:

Nothing

Description:

In script only: Go to given label.
Note: String argument is used here.
Be sure to use double quotes around label name in goto.


Example:

goto "Loop"


Comments:

Define the label with #.

Note that loops should always have a time delay.

Triggers poll every 0.5 seconds so you rarely need a loop faster than that.