Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Help with syntax please

Quote Reply
Help with syntax please
Each of my links is tagged as a type of link. In link.html depending if its one or another it gets displayed one way or another.
Now I want to mix some of those display types but Im having some kind of duplicate problem and Im guessing its atributed to this since this is the change Ive made.

What I have now looks like this:

<%if isType1 or isType2 or isType3 eq 'Yes'%>
show this
<%endif%>

<%if isType4 eq 'Yes'%>
show that
<%endif%>


But link type 4 gets repeated as if it were type1 or type2 or type3. So im getting links.html showing the correct and the wrong type of link.html

Can someone help me out here please.

Thanks in advance.

Juan Carlos
Quote Reply
Re: [Gorospe] Help with syntax please In reply to
That should probably be:
Code:
<%if isType1 eq Yes or isType2 eq Yes or isType3 eq Yes%>
...
<%elsif isType4 eq Yes%>
...
<%endif%>

Adrian
Quote Reply
Re: [brewt] Help with syntax please In reply to
brewt wrote:
That should probably be:
Code:
<%if isType1 eq Yes or isType2 eq Yes or isType3 eq Yes%>
...
<%elsif isType4 eq Yes%>
...
<%endif%>
Doesn't Yes need to be "Yes" or 'Yes' ? Tongue


Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Help with syntax please In reply to
No. As long as the string is just [a-z0-9], you don't need quotes.

Adrian
Quote Reply
Re: [brewt] Help with syntax please In reply to
Ah, I didn't know that <G> Thought I had one over on you Laugh

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Feb 14, 2008, 8:02 AM
Quote Reply
Re: [Andy] Help with syntax please In reply to
Thanks guys, both worked great. Fix my problem.