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

exclude 2 FatherID's with unless.

Quote Reply
exclude 2 FatherID's with unless.
Hi all,

I want to exclude 2 fatherid's with unless. One FatherId is ok, but what is the syntax for two?

This works fine with one
------------------------------------
<%unless FatherID == 0%>
do this
<%endunless%>
------------------------------------

I tried this with 2 FatherID's. Doesn't work..
------------------------------------
<%unless FatherID == 0 OR 129%>
do this
<%endunless%>
------------------------------------

Can some put me om the right track???

Thanks,
Ron
Quote Reply
Re: [rsahertian] exclude 2 FatherID's with unless. In reply to
Try with

<%unless FatherID eq '0' or FatherID eq '129'%>
do this
<%endunless%>
Quote Reply
Re: [Payooo] exclude 2 FatherID's with unless. In reply to
Thanks Payoo,

works....