exit()

Stops execution of the current event handler instance. It does not stop execution of other instances of the same event handler, nor does it stop execution of other handlers of other event types, and especially it does not stop or prevent further or future execution of your entire script! In other words, you should rather see this function as a return statement, in case you are familiar with other programming languages already.

Function Prototype

exit()

Arguments

None.

Return Value

None.

Examples

on init declare $numberOfNotes end on on note $numberOfNotes := $numberOfNotes + 1 select $numberOfNotes case 1 message("First note was triggered!") { Will never be printed ! } exit case 2 message("Second note was triggered!") { Will never be printed ! } exit case 3 message("Third note was triggered!") { Will never be printed ! } exit end if message("The " & $numberOfNotes & "th note triggered.") end on