Gossamer Forum
Home : Products : DBMan SQL : Discussion :

If Foo1 eq this and foo2 that

Quote Reply
If Foo1 eq this and foo2 that
I am trying with these permissions, again.

How would I do this?

Code:
<%if foo1 eq 'test1' and foo2 eq 'test2' or foo3 eq 'test3'%>display this<%else%>Sorry no access!<%endif%>


As you can see I have "AND" and "OR" together, which does not work Crazy

I tried this:

Code:
<%if foo1 eq 'test1' and foo2 eq 'test2'%><%else%><%if foo3 eq 'test3'%>display this<%else%>Sorry no access<%endif%><%endif%>
I tried multiple ways, with elseif and ifnot, but cant think straight now, please help Smile
Subject Author Views Date
Post If Foo1 eq this and foo2 that Suomi 2295 Feb 27, 2002, 9:19 AM