grantballantyne
asked on
If value is not one of statement
Hi.
I have the following IF statement within an ASP page
<% if (Recordset1.Fields.Item("p roductimag e").Value) <> "albafill1.jpg" then %>
My problem is that I would like to check that my productimage value is not equal to "albafill1.jpg" OR "albafill2.jpg"
I am struggling with the correct syntax to check that my value is not equal to more than one value.
Can anyone assist?
Thanks in advance
Grant
I have the following IF statement within an ASP page
<% if (Recordset1.Fields.Item("p
My problem is that I would like to check that my productimage value is not equal to "albafill1.jpg" OR "albafill2.jpg"
I am struggling with the correct syntax to check that my value is not equal to more than one value.
Can anyone assist?
Thanks in advance
Grant
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks mvidas, that worked
Glad to help!
You should just be able to use
<% if (Recordset1.Fields.Item("p
Matt