|
BorisU Beginner
Joined: 03 Jan 2009 Posts: 21
|
Posted: Thu Jul 14, 2011 7:05 am
Strange syntax error |
This trigger worked for some time but now after some minor cosmetic editing I get an error
Why dg_join parameters turned green?
The most strange thing is that the error disappears if I change dg_join to something else. Either in this script or in the name of alias that should be called as a result of this thigger. |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Thu Jul 14, 2011 1:41 pm |
You probably changed the spacing inside your #SWITCH. Is that the "cosmetic change" that you made? #SWITCH is somewhat finicky about how it is arranged.
|
|
|
|
BorisU Beginner
Joined: 03 Jan 2009 Posts: 21
|
Posted: Thu Jul 14, 2011 2:33 pm |
Probably I changed it as well as removed some debug output. I tried to change the order in which the conditions are checked - the problem persists. CMUD does not like "dg_join" for some reason.
|
|
|
|
BorisU Beginner
Joined: 03 Jan 2009 Posts: 21
|
Posted: Thu Jul 14, 2011 7:01 pm |
After some tests I finally found the reason of this strange behaviour. It occurs when the alias dg_join has no flag "Parse arguments". BTW that flag has a wrong tooltip in alias editing dialog.
|
|
|
|
|
|