Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Use OR or AND in IF statement?

Quote Reply
Use OR or AND in IF statement?
Hi:

Within templetes, I know you can use this:

<%if variable eq 'string'%> text <%endif%>

But can you do (something like) this:

<%if variable eq 'string' or 'string'%> text <%endif%>

-- or --

<%if variable between 'string' and 'string'%> text <%endif%>

-- or even --

<%if variable > 'string' and < 'string'%> text <%endif%>


????

If so, is the above syntax right?

dave

Subject Author Views Date
Thread Use OR or AND in IF statement? carfac 2144 May 1, 2001, 7:43 AM
Thread Re: Use OR or AND in IF statement?
pugdog 2089 May 1, 2001, 10:39 AM
Thread Re: Use OR or AND in IF statement?
carfac 2076 May 1, 2001, 1:57 PM
Thread Re: Use OR or AND in IF statement?
surfsafely 2049 May 2, 2001, 5:10 AM
Post Re: Use OR or AND in IF statement?
Paul 2034 May 2, 2001, 5:15 AM