Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Question about if conditional in template

Quote Reply
Question about if conditional in template
Hello,
lets say I have a field called data .

Is there a way to have use the if conditional statement with an else statement ?

Like IF Data, XXX, else YYY ?

Or is there a way to have something displayed if the field is empty, like:

If NO Data, then YYYY ?

Thanks in advance,
Brakkar
Quote Reply
Re: [brakkar] Question about if conditional in template In reply to
You can use:

<%if FIELD eq 2 or FIELD eq 3 or FIELD eq 4%> aso...
or you can use
<%if Screenshot => 1%>

To use else, you have to use:
<%if FIELD eq xxx%>
<%else%> or <%elseif%>

dont forget
<%endif%>


You should Use -- for Fields with no Data then you can use:
<%if FIELD ne --%>

You can find a full SYNTAX List when you use the
help link...


Best regards from
Bremen/Germany

Lothar

Last edited by:

eljot: Oct 14, 2004, 11:06 AM