Action: Exitloop()

related actions: gosub, gosubrandom, goto, gotorandom, repeat, exitevent
related events: label
see also: fkiss, events, actions

exitloop()

First defined in: FKiSS4
This will exit the current event and terminate the current repeat() loop. No more code in this event will be processed.

Example:

;@ repeat(Mysubroutine, 5, N) ; Call MySubroutine 5 times or until object #4 is mapped.

... more actions and events here...

;@ label(MySubroutine)
;@   ifmapped(#4)
;@     exitloop() ; If object #4 is mapped, stop this event right now.
;@   endif()
;@   sound("Uhoh.wav") ; If object #4 is mapped, this sound will never be played.