Error getting tags :
error 404Error getting tags :
error 404 exit to top | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
exit to top
Basics
Expander triangle
Type
Control Structure
Syntax
exit to top
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Halts the current handler and all pending handlers.
Examples

if the result is not empty then exit to top -- stop everything

Additional Comments
Expander triangle

Use the exit to top control structure to stop executing the current handler and suppress pending messages.

Form:

The exit to top statement appears on a line by itself, anywhere inside a handler.

Comments:

Usually, exit to top is used within an if control structure, so that execution stops if a condition is true and continues if the condition is false.

You can use an exit to top statement in a message handler, function handler, getProp handler, or setProp handler.

If the current handler was called from another handler, the calling handler is also halted. Other messages that depend on the same action are also suppressed: for example, if an exit to top control structure is executed in a closeCard handler, the corresponding openCard message is not sent to the destination card.

Important! When a handlerexecutes an exit to topstatement, the message, setProp trigger, function call, or getProp call is not passed to the next object in the message path. To halt the current handler and pass the message, trigger, or call to the next object in the message path, use the passcontrol structure instead of exit or exit to top.

User Comments
Expander triangle