Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Function to jump out of a event?

Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
11-07-2005 08:49
Is there a function/command to jump out of an event? For instance, lets say that when a particluar thing is TRUE, you want the event to just skip the rest of the code inside it.

CODE
touch_start( integer num )
{
if ( this == TRUE )
{
LEAVE_EVENT();
}
// other commands to execute
}


I realize that in this example, I could just put the other commands inside else {}, but I'm just wondering if such a thing exists. Could I use return() where it says LEAVE_EVENT or some equivalent?
_____________________
imakehuddles.com/wordpress/
Kairen Overdrive
Registered User
Join date: 12 Jul 2005
Posts: 38
11-07-2005 08:54
just use return;
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
11-07-2005 09:06
From: Kairen Overdrive
just use return;

ty :)
_____________________
imakehuddles.com/wordpress/