if not working
Posted: Tue Jan 11, 2011 10:05 am
I can't seem to get this if working any ideas?
/If i have it like this
the else statement works.
if I make it
the if statement works.
The only thing i can think of is the $PriceList returns the pound symbol as a code, but i have tried £ and still the same result, is there anyway i can get $PriceList in a browser without any formatting?
Cheers
Kevin
/If i have it like this
Code: Select all
if ($PriceList == "£0.00") {
$displayString = "<p class=\"price half_margin\">Free Event</p>";
} else {
$displayString = "<p class=\"price half_margin\">" . $PriceList . "</p>";
}
return $displayString;if I make it
Code: Select all
if ($PriceList != "£0.00") {
$displayString = "<p class=\"price half_margin\">Free Event</p>";
} else {
$displayString = "<p class=\"price half_margin\">" . $PriceList . "</p>";
}
return $displayString;The only thing i can think of is the $PriceList returns the pound symbol as a code, but i have tried £ and still the same result, is there anyway i can get $PriceList in a browser without any formatting?
Cheers
Kevin