Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Template Syntax <%else% tags

Quote Reply
Template Syntax <%else% tags
Ladies/Gents:

I know I should know this by now .... but for some reason I'm having a little difficulty with multiple <%else%> statements. There obviously is another way to do this ... I just can't seem to get it. If you could assist I'd really appreciate it. Here is what I'm trying to do:-

Code:
<%ifnot Description%>No Description<%else%><%if Description iscontains '<p'>%><%Description%><%else%>
<%Description_Formatted%><%endif%>

Any ideas would be greatly appreciated. I've read the template syntax but am having some difficulty working it out.

Regards,


Clint
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] Template Syntax <%else% tags In reply to
You didn't close one of your if's and you have a typo 'iscontains'.

It also might be a little more understandable if you just keep it to a single if elsif else:
Code:
<%if Description icontains '<p'%>
<%Description%>
<%elsif Description%>
<%Description_Formatted%>
<%else%>
No Description
<%endif%>

Adrian
Quote Reply
Re: [brewt] Template Syntax <%else% tags In reply to
Thanks Adrian ...

This will make things a bit simpler.

Regards,

Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory