[ic] order_detail.html, conditional display of field - SOLUTION

Russ Mann interchange-users@lists.akopia.com
Mon Jul 2 19:21:00 2001


I got it to work in a screwy way:

[set my_shipping_address][sql-param shipping_address][/set][if type=explicit
compare="($Scratch->{my_shipping_address} !~ /Primary/i)"]<br>Ship
To:<pre>[sql-param shipping_address]</pre>[/if]

I had to do this with a loop-data on the same page dealing with Credit Card
info.
Seems as though there should be [if]'s possible with sql-params and
loop-data's that compare to a value.

R

-----Original Message-----
From: interchange-users-admin@developer.akopia.com
[mailto:interchange-users-admin@developer.akopia.com]On Behalf Of Ron
Phipps
Sent: Monday, July 02, 2001 5:57 PM
To: interchange-users@developer.akopia.com
Subject: Re: [ic] order_detail.html, conditional display of field


>[if sql-param shipping_address ne Primary]<br><small>Ship
>To:<br><pre>[sql-param shipping_address]</pre></small>[/if]


I always use double quotes around my string comparisions, could it be
possible that it is required to use double quotes around Primary?

Good luck,
-Ron

_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users