[ic] How to eliminate: Safe: syntax error

Peter peter at pajamian.dhs.org
Tue Mar 4 19:14:42 EST 2008


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


More information about the interchange-users mailing list