[ic] database lookup from form variable

Michael Goldfarb interchange-users@icdevgroup.org
Thu Jun 13 22:13:01 2002


IC 4.8.5

I must be a complete moron (or more likely have a syntax error), but I am 
trying to do a simple if/else statement to test to see if a certain item is 
in a catalog when a user enters its SKU number into a form field.

Here is the code I have tried:

[if data products::sku::"[value sku_test]"]
It is available
[else]
It is not available
[/else]
[/if]

I can print [value sku_test] correctly on the following page both above and 
below the "if" statement so I know it is correct, but no matter what syntax 
I try I cannot get this to work.

Sometimes it's the easiest things...