|
chris_c300 Newbie
Joined: 19 Dec 2008 Posts: 7
|
Posted: Mon Aug 16, 2010 4:46 am
Old Triggers not working in 3.22a |
After I upgraded to 3.22a, some of my old triggers suddenly stopped working. I noticed that they all have the %if function in the script and the error is always the same. Here is a part of the script in one of the triggers that are not working.
Code: |
#print %if(@focus_ok==1,%ansi(11)F,%ansi(3,blink)*)
|
And the error message when I use the check syntax function is this:
Quote: |
extra ) parenthesis at row 8 col 63
|
I can't seem to find the extra parentheses
Any suggestions? Thanks. |
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Mon Aug 16, 2010 8:32 am |
%if was changed a bit, this should work:
Code: |
#print %if(@focus_ok==1,{%ansi(11)F}, {%ansi(3,blink)*}) |
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Aug 16, 2010 4:37 pm |
Or, properly enclose string values in " quotes like you should. Like this:
Code: |
#print %if(@focus_ok==1,%ansi(11)"F",%ansi(3,blink)"*") |
The " around the F is optional, but the " around * is required for CMUD to treat it like a string value.
Or, the {} around the entire string like GeneralStonewall mentions should work too. |
|
|
|
chris_c300 Newbie
Joined: 19 Dec 2008 Posts: 7
|
Posted: Wed Aug 18, 2010 4:11 am |
Ah I see! Thanks!
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|