Thanks Andy.
I just popped this on the end:
So, just out of interest, why is using a global better than calling it from a template like I was doing below?
<%elseif Title eq 'Brian'%><a href="http://www.brians-site.com">Brian's Website</a>
<%else%>NA
<%endif%>
I just popped this on the end:
Code:
else { return qq|NA|; }So, just out of interest, why is using a global better than calling it from a template like I was doing below?
Code:
<%if Title eq 'Adam'%><a href="http:///www.adams-site.com">Adam's Website</a> <%elseif Title eq 'Brian'%><a href="http://www.brians-site.com">Brian's Website</a>
<%else%>NA
<%endif%>