Gossamer Forum
Home : Products : Links 2.0 : Customization :

greater than and equal to with template mod

Quote Reply
greater than and equal to with template mod
I am using the enhanced template mod for links located at http://www.gossamer-threads.com/...ces/Detailed/26.html and have a question.

I am using the <,> to determine if a number in my DB (quantity) is greater than or less than a certain number. Here is how I have it set

Code:
<%if Quantity > '10'>
<%Quantity%>
<endif%>
<%if Quantity < '10'>
We have a short supply of this product, please contact our sales staff....
<%endif%>

Now it all works fine except if the quantity is 10, which then it just shows nothing. I know this may be simple but I am just learning....Heres what I tried

Code:
<%if Quantity => '10'>
<%if Quantity ==> '10'>

But niether worked...
Any suggestions

Thanks,
Ian Galloway
Subject Author Views Date
Thread greater than and equal to with template mod Nofatals 996 Apr 10, 2000, 3:10 PM
Post Re: greater than and equal to with template mod
Stealth 980 Apr 10, 2000, 3:14 PM
Post Re: greater than and equal to with template mod
Nofatals 980 Apr 10, 2000, 3:19 PM
Post Re: greater than and equal to with template mod
Stealth 979 Apr 10, 2000, 4:00 PM