I have never had such a simple if statement completely fail to work but this darn thing is always behaving as if it is true.

[php]if ($coinrequried < $plan[‘btc_banked’]) {
echo “$coinrequired is smaller than {$plan[‘btc_banked’]}”[/php]

Is outputting
0.074349442379182 is smaller than 0

Not really sure what the issue is, 0.07 is most definitely smaller than 0 and that’s what you’re asking it to evaluate.

You have a typo in your if statement: $coinrequ[color=red]r[/color]ied vs $coinrequired.

Awesome, I knew it had to be something incredibly simple. Thanks for being that extra pair of eyes I needed to catch that!

You are most welcome!

Sponsor our Newsletter | Privacy Policy | Terms of Service