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

Re: [ic] ifs with scratch variables


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]

and

[if scratch bobshp == 0.01]

With regards

	Racke


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

_______________________________________________
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.