Hi!
I'm trying to format an if statement for OsCommerce like this:
if ($products_price != "$0.00"){
echo $products_price;
}
For testing, I can just echo $products_price and it will show me $0.00. However, when I put the IF statement in, it acts as if $products_price never equals $0.00! I know in this instance it does equal $0.00 BUT it never acts that way! Is there maybe some sort of currency variable type that could be causing this? I just need to do a simple compare... Any feedback would be great!
-dle
I'm trying to format an if statement for OsCommerce like this:
if ($products_price != "$0.00"){
echo $products_price;
}
For testing, I can just echo $products_price and it will show me $0.00. However, when I put the IF statement in, it acts as if $products_price never equals $0.00! I know in this instance it does equal $0.00 BUT it never acts that way! Is there maybe some sort of currency variable type that could be causing this? I just need to do a simple compare... Any feedback would be great!
-dle