Cannot Get word press to obey comparison operators
-
ok so the code word press is ignoring.
if ( $totalVal <= 99.99 ){ echo '1My Text' . $totalVal;}
In normal php it works fine but word press ignores the comparing the values and prints the echo regardless. The $totalVal is given by a woocommerce order total cost.
Is there another way to compare to numerical values in wordpress?
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Cannot Get word press to obey comparison operators’ is closed to new replies.