_exit
- terminate the execution of AFL formula

Miscellaneous functions
(AmiBroker 6.40)


SYNTAX _exit()
RETURNS NOTHING
FUNCTION The function gracefully ends AFL execution at the point of the call. The code after _exit() call will not be executed.

It is useful if you want to terminate AFL processing quicker than usual in certain situations

EXAMPLE if( Status("action" == actionScan )
{
   // if we are running scan we just create composite
   AddToComposite( Volume, "~~~TotalVol", "X" );
   // and end the execution quickly
   _exit();
}

// rest of the code that will only be executed if NOT running SCAN
SEE ALSO

References:

The _exit function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.