function bigWork( ){ doA( ); doB( ); doC( ); if( condition ) { doD( ); doE( ); doF( ); } } hth Rodney Dan Costea wrote: > Hi, When an event fires, I have some js code that is executed > (very many functions). But, in the middle of that code, if a condition > is satisfied, I want to stop executing the js code. How can I do > that? Thanks, Dan.