[ic] [if]???

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Tue Jan 29 10:36:01 2002


> That's right. This way it won't work.
> 
> Try:
> 
> [if term="25" op=">" compare="20"]Hello test is
> okay.[else]Not 
> Okay.[/else][/if]
> 
> [seti testme]2[/seti]
> [if scratch testme > 1]Value of Scratch testme
> ([scratch testme]) greater 
> than 1[/if]
> 
> [if term="0404-LN" op=eq
> compare="0404-LN"]Okay[else]Not Okay[/else][/if]
> 
> [if type=scratch term=testme op=">"
> compare=1]Yes[else][/else]No[/if]
> 
> And read the docs.
> http://interchange.redhat.com/cgi-bin/ic/docfly.html?mv_arg=ictemplates05%2e05
> 
> 
> Best
>          Ton
> 

Thank you Ton, but that can't solve my original problem to compare value from CGI form to value retrived from database.  And I read that document thousands of times.  Do you know the way to do this?

for example

[if type="xxx" term="[loop-code]" op=eq compare="[cgi option_code"]
you got it!
[else]
this is Interchange, pal!
[/else]
[/if]