Difference between revisions of "Goto"

412 bytes added ,  06:27, 24 June 2014
Added example and links to nvse equivalents
imported>Cipscis
(Added note about available label IDs, and link to Label)
imported>Odessa
(Added example and links to nvse equivalents)
Line 9: Line 9:
   |Type = int
   |Type = int
   }}
   }}
|example = int GetNextActor
set GetNextActor to 1
Label GetNextActor
; Do something
if SomeCondition
    GoTo GetNextActor
endif
}}
}}
==Notes==
==Notes==
*There are 256 available slots for Labels, enabling IDs from 0 to 255 inclusively. Values outside of this range will not work.
*There are 256 available slots for Labels, enabling IDs from 0 to 255 inclusively. Values outside of this range will not work.
*If using NVSE since version 4, label/goto should be replaced by [[While]] or [[Foreach]] in all but exceptional cases, as these are more powerful, readable and reliable. Use of Label/goto for creating loops should be considered outdated and bad form.
==See Also==
==See Also==
*[[Label]]
*[[Label]]
*[[While]]
*[[Foreach]]
[[Category:Functions_(FOSE)]]
[[Category:Functions_(FOSE)]]
Anonymous user