|
Bluebear Beginner
Joined: 10 Oct 2007 Posts: 17
|
Posted: Sat Feb 02, 2008 3:42 pm
'#abort all' does not function properly |
In the helpfiles you will find the following.
#IF (@Name="Zugg") {Command 1;#abort all;Command 2};Command 3
Another contrived example. In this one if @Name is "Zugg" then Command 1 is executed...both Command 2 and Command 3 are aborted since the flag to #abort is non-zero. Command 3 is executed if @Name is not "Zugg".
This used to be true in zmud, but in cmud command 3 is executed all the time.
#Abort all seems to be no different to #abort. Can anybody suggest an easy workaround for this? or do I need to rewrite all my scripts that use #abort 1? |
|
|
|
Zhiroc Adept
Joined: 04 Feb 2005 Posts: 246
|
Posted: Sat Feb 02, 2008 5:33 pm |
"#abort 1" seems to work. I bet the "all" is being converted to a number, and that turns out to be zero?
|
|
|
|
luggage Novice
Joined: 20 Jul 2004 Posts: 38 Location: Australia
|
Posted: Sun Feb 03, 2008 2:12 pm |
I tested using #ABORT all in both zmud and cmud, and both process both Command 1 and Command 3.
Zmud help files give the example of using #ABORT 1, and not abort all.
So, yes, atm you need to a find/replace and change everything to abort 1.
Either the help files need adjusting under Cmud to use a 1 instead of the word all, or it is a feature that Zugg was going to implement but never happened yet. |
|
|
|
|
|