|
Variables -
01-06-2007, 12:46 AM
Hi,
I just purchased the dev version today and have begun editing my templates. I'm having a difficult time wioth one variable, and hope someone knows the answer:
I'm setting the value of the price using a hidden input on the page where a new ad is entered. When the list of ads in that category are displayed, degug shows the value of this variable as:
price => $2.00
I'm then testing for the value of this variable in the showlistings.tpl.php template. I've tried several ways:
{if $entry.price == "$2.00"}
{if $entry.price == $2.00}
{if $entry.price == "2.00"}
{if $entry.price == "2"}
{if $entry.price == 2}
But none of these work. I'm sure it's the way I have the above IF statement written -- what am I doing wrong?
Thanks!
|