[ic] ifs with scratch variables

Stefan Hornburg (Racke) racke at linuxia.de
Sun Nov 19 15:13:04 EST 2006

Bob Puff wrote:
> Hi Group,
> I was recently messing around with the shipmode page from a recent install. 
> Using a IC 5.2 engine, I tried:
> [tmp bobshp][shipping mode="[loop-code]"][/tmp]
> ..within the listing of shipping modes.  It does indeed "take", as I can say
> something like:
> Cost: [scratch bobshp]
> and it prints out nicely.  However, I can't seem to get this to work:
> [if scratch bobshp eq "$0.01"] ...
> I've tried a few different things, like:
> [if type=explicit compare='[scratch bobshp] eq "$0.01"']
> ...but can't seem to get it to work.  And this is when it is displaying
> "$0.01" in the simple printing of [scratch bobshp].  What am I doing wrong?

Maybe there is some whitespace in the scratch variable.

My recommendation is to use:

[shipping mode="[loop-code]" noformat=1]


[if scratch bobshp == 0.01]

With regards


LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the interchange-users mailing list