Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Less than or equal to

Quote Reply
Less than or equal to
Can anyone tell me what the template code would be for "less than or equal to"?

For example <%if CA eq '2000'%> • <%endif%> but I what I really want to do is <%if CA lt '2000' but gt '1999'%> • <%endif%>

Come to think of it, maybe it's not the less than or equal to... Anyway, I can't find a reference for what tags are available in the templates anywhere. Also, a search of the forum didn't seem to find an answer either.

Thanks,

Bryan

Quote Reply
Re: Less than or equal to In reply to
Burried within the on-line docs, is an explanation of how the and/or functions in the template parser works.

You'd want to look at the docs for GT::Template or maybe in the GT::Template.pm file itself. I can't remember exactly where I saw it, but there was a fairly complete explanation of what is and is not possible, with warnings, caveats, and examples inside the files or links itself.



PUGDOG® Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Plugins:http://LinkSQL.com/plugin
Quote Reply
Re: Less than or equal to In reply to
Thanks, I don't know where the reference to that was. I thought I looked through the on-line docs pretty carefully, but I guess I was looking for a complete guide like what is in the Template.pm.

Bryan

Quote Reply
Re: Less than or equal to In reply to
Hi,

Have a look at:

http://www.gossamer-threads.com/...ic=/GT/Template.html

This is from the demo (username: admin password: admin).

Cheers,

Alex

--
Gossamer Threads Inc.