[ic] IF comparison question

Paul Jordan interchange-users@interchange.redhat.com
Sat May 11 23:05:01 2002


> According to the documentation, the following snippets of code should mean
> the same thing:
>
> 1) [if eq [sql-param foo]][then][sql-param
> foo][/then][else] [/else][/if]
>
> 2) [if ne [sql-param foo]][then][sql-param
> foo][/then][else] [/else][/if]
>
> I would be thankful if someone could prove me wrong/right :)
>
>
> René
>

Someone can correct me if I am wrong, but I don't think you are comparing
anything.

[if eq [sql-param foo]]

maybe something more like

[if foo eq [sql-param foo]]

Paul