For some weird reason this if statement is not working?
$change_pct_candle[1] >= 0.38022813688214 && $change_pct_candle[2] >= 1.3487475915221
If I try:
$change_pct_candle[1] >= 0.38022813688214
It works. If I try:
$change_pct_candle[2] >= 1.3487475915221
It works. When I try:
$change_pct_candle[1] >= 0.38022813688214 && $change_pct_candle[2] >= 1.3487475915221
It doesn't work. Am I doing something wrong here?
The var_dump of $change_pct_candle is:
array(7) {
[0]=>
float(-0.10984848484848)
[1]=>
float(0.38022813688214)
[2]=>
float(1.3487475915221)
[3]=>
float(-0.57471264367815)
[4]=>
float(0.19193857965451)
[5]=>
float(0.19230769230769)
[6]=>
float(0.1926782273603)
}
Aucun commentaire:
Enregistrer un commentaire