jeudi 8 mars 2018

php If statement with && and || not working as expected [on hold]

I have this :

if($trigger==1 && ( $trig2>$trig3 || $trig4<$trig5 )){Do something}

I am then logging which condition was true and I see that the if statement is true even if just the $trigger==1 is true, it seems like it does not care about what comes after the &&.

Aucun commentaire:

Enregistrer un commentaire