[ic] small if query
Kevin Walsh
interchange-users@icdevgroup.org
Thu Feb 6 19:06:01 2003
mike karthauser [mikek@brightstorm.co.uk] wrote:
>
> I am implementing a minimum order statement for the store so it will prevent
> orders under a certain value from going though the checkout.
>
> I need to write a query as below
>
> [if [total-cost] >= '15']
> shop
> [else]
> no shop
> [/else]
> [/if]
>
> Obviously that isn't right. Can someone point out what's wrong.
> Thanks - i'm getting really into how straight forward ic is (when you know
> how things work).
>
Try the following:
[if term="[total-cost noformat=1]" op=">=" compare="15"]
shop
[else]
no shop
[/else]
[/if]
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/