Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Multiple conditionals

Quote Reply
Multiple conditionals
Hi,

Im interested in setting up LinkSQL category specific advertising.

Would this be possible using multiple conditionals as in the example below?

<%if category_id eq 10 or if category_id eq 51%>
// display banner 1 code
<%else%>
// display banner 2 code
<%endif%>


thanks for your help,

Charlie



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Quote Reply
Re: [Chas-a] Multiple conditionals In reply to
Yes, you can do this, but if I'm not mistaken, I think the syntax would be the following if you're placing this on the category.html template:

<%if ID = 10 or ID = 51%>
// display banner 1 code
<%else%>
// display banner 2 code
<%endif%>

-Frank
Quote Reply
Re: [FrankM] Multiple conditionals In reply to
Thats got it working!

Thanks Frank Cool



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile