 |
netooi Newbie
Joined: 18 Sep 2004 Posts: 2
|
Posted: Sat Sep 18, 2004 11:47 am
is there a way to break out of the middle of a trigger? |
I have a trigger where i'm doing a bunch of #IF statements...
I want to be able to exit out of the middle of this trigger...
Is there a zmud command that lets you break out of the middle of a trigger?
i dont want to check the rest of the #IF statements if one of the conditions matches.
I have tried making a big long #IF (condition1) {statement} {#IF (condition2) {statement2} }
and it didnt work correctly, maybe becuase i have like 60 conditions...
Anyway i would appreciate it if anyone knows of an easy way to break out of the middle of a trigger.. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Sep 18, 2004 1:42 pm |
#ABORT 1
|
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
 |
Theragil Apprentice

Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: Sat Sep 18, 2004 3:24 pm |
#abort will break out of the current {block} but not the whole alias/trigger/etc.
#abort 1 will break out of the alias/trigger/etc. as well as everything that called it.
There's nothing that aborts just out of the current alias/trigger/etc. so you usually have to do the ungodly nested ifs thing you were doing. |
|
|
 |
netooi Newbie
Joined: 18 Sep 2004 Posts: 2
|
Posted: Sat Sep 18, 2004 4:59 pm |
thanks for the advice.
|
|
|
 |
|
|