[ic] IF comparison question

Paul Jordan interchange-users@interchange.redhat.com
Sun May 12 20:27:00 2002


> > 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
>
> I'm trying to check if a value that a sql-query returns is empty or not...
> Unfortunately I don't always know what I'm doing ;-)
>
> René
>
>

You don't need an operator, you just need to see if that value is there. In
foundation there are probably some examples, like

[if-item-field download]
there is a value in download field
[else]
there is no value in download field
[/else]
[/if]


Paul

And that is OK, most of the time I don't know what I am doing either...