Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] [if] ????



Hi,

How do I compare a value retrived from database to a value receive from CGI form?

here is my code:

                  [loop search="
                        fi=options
                        se=[item-code]
                        sf=sku
                        se=1
                        sf=o_enable
                  "]
  
[if type=value term="loop-code" op="eq" compare="[cgi option_code]"]
   You have selected this option
[/if]

                  [/loop]


all the search function, the value of CGI option_code is valid, but the if statement somehow doesn't work.  I know I did a mistake somewhere, but I have been trying to debug it for 2 days without success.

Thank you for your expert advice.





Search for: Sort by: