I'm trying to make a simple if with comparisons, first value is compulsory but the second can have two values but it doesn't work while it worked with only the && comparator, am I doing something wrong?
I tested the value echoing it and it's the right value, I have the same code after this one but with only one possibility and it works fine
Here is my code:
if ($last_run < 0 && ($posts_cust[$i][2][0]->cat_name == 'course' || $posts_cust[$i][2][0]->cat_name == 'rando') )
{
$last_run = $i;
}
Aucun commentaire:
Enregistrer un commentaire