Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

OR operator in Template System?

Quote Reply
OR operator in Template System?
Hi. I'm trying to find out if there is an 'or' operator in the LSQL template system? I've tried;

<%if NMCC || if AHCC || if KPBA%>

and

<%if NMCC OR if AHCC OR if KPBA%>

..etc... but to no avail. Has anyone managed to get an OR operator to work correctly?

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] OR operator in Template System? In reply to
Code:
<%if NMCC or AHCC or KPBA%>
Read the documentation...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] OR operator in Template System? In reply to
Thanks, that worked :)

>>>Read the documentation... <<<

The included documentation, or Manual? I looked in the included docs, and only say basic stuff on Template tags.. i.e;

<%if tag%>
<% if tag %>
<%endfif%>
<%else%>
<%endif%>

...etc

'OR' is the only one I couldn't work out :(

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] OR operator in Template System? In reply to
Hey, Andy!

Boy, I do agree with you here. The examples are sparce and you have to really really dig and guess here. Please Gossamer, rewrite this (Info/Manual section on Links SQL Template logical operators and variables) and add more examples, please!

There was also a "ifnot" operator, I think!
Quote Reply
Re: [webslicer] OR operator in Template System? In reply to
The bulk of the documentation can be found in the Help section, GT Module Documentation (Andy should know by now Wink)

Here's a link:
http://admin:admin@www.gossamer-threads.com/...ic=/GT/Template.html

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [webslicer] OR operator in Template System? In reply to
As pointed out the best documentation is in the modules themselves.

Go to your admin area, and click on the "HELP" to the upper right.

You'll have a list of choices, and you want to get into the Templates / Template Syntax then the bottom goes to GT::Template where all the really good stuff is :)


To get into the main help system, go to the Developer'S Guide -> GT Module Documentation

That will open a frameset with all the "goodies" about the modules and how to use them, what they do, etc.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.