[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] How to eliminate: Safe: syntax error


On 03/04/2008 12:38 PM, DB wrote:
I'm seeing errors like this which seem to result from a custom backend page that I wrote for employees to view and add notes to orders.


11.22.33.44 GTfhErNI:11.22.33.44 - [03/March/2008:09:54:26 -0500] store /cgi-bin/store/process Safe: syntax error at (eval 588) line 1, near "; =="
 >
 >  == 1
 >

Best I can tell, the problems result from statements like:

...
[elsif type=explicit compare="[calc][data table=transactions col=pending key=[loop-code]] == 1[/calc]"]
...

[elsif data transactions::pending::[loop-code] == 1]

Also, you don't need [calc] tags when the type is explicit as someone else pointed out. And If you do want to do an explicit compare then use $Tag->data() instead of [data] (always try to avoid the need to interpolate tags inside of a [calc] block, and use [calcn] instead).

See:
http://www.interchange.rtfm.info/icdocs/tags/if.html
http://www.interchange.rtfm.info/icdocs/tags/data.html

Peter
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.