|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: Fri Sep 05, 2003 11:29 pm
Nested #IF statement with error... need help. |
Hi,
I have this nested #IF trigger:
#IF (%iskey( @mob_bot_list, %1)) {
#T- mob_action1
#LOO %db( @string_steps, %2) %3
kill %db( @mob_bot_list, %1)
} {execute not_true_trigger}
If it's TRUE it works fine BUT if FALSE it refuse to "execute the not_true_trigger".
Indeed, in the zMUD Script window it produce a "red" error message, reading:
#LOO %db( @string_steps, %2) %3
^ syntax error
Someone know what's going on here [?] |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Sep 05, 2003 11:36 pm |
you forgot a set of curly braces. These should go around the code for the #LOOpdb command you were probably wanting to use.
#LOO %db( @string_steps, %2) {%3} |
|
|
|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: Fri Sep 05, 2003 11:55 pm |
Thanx, that sorted the error message!
However, the second part of the #IF statement (if FALSE) doesn't execute (it should fire if TRUE doesn't fire)... Any ideas? |
|
|
|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: Sat Sep 06, 2003 12:02 am |
Duh, nevermind my last posting. I was tired =)
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Sep 06, 2003 12:02 am |
you'll have to explain a little better what it's supposed to do. Unless it's a mud command or an alias, "execute not_true_trigger" doesn't mean a thing to ZMud. Are you perhaps looking for the #EXECUTE command?
|
|
|
|
|
|