Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Compare Fields in a template

Quote Reply
Compare Fields in a template
Hi:

I thought I had solved this once, but I cannot seem to find it...

I want to compare two fields from the Links table in a template...

<%if Title eq 'Series'%>
Do this
<%else%>
Do that
<%endif%>

The "<%if Title eq 'Series'%>" does not seem to work...

Any ideas!

dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Compare Fields in a template In reply to
Possibly;

<%if Title eq $Series%>

...or maybe;

<%if $Title eq $Series%>

One of them should work (hopefully :p).

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] Compare Fields in a template In reply to
Andy:

We have a winner!

<%if Title eq $Series%>

Thanks!
dave

Big Cartoon DataBase
Big Comic Book DataBase