The first part before || works on a standalone basis, but the second added (OR) second condition doesn't perform.
eg. $category="Cycle", or ($category) Cycle is not ($primaryName) Running I would expect to echo Running;
eg $category="Surf" echo nothing;
eg $category="Tech" and $primaryName="Tech" echo nothing;
eg $category="Tech" and &primaryName="Clean" echo "Clean";
What am I doing wrong here?
<?php $categorycheck = array("Surf", "Sail", "Driving", "Flying");
if ((! in_array($category, $categorycheck)) || ($category != $primaryName))
{
echo '<li>' . $primaryName . '</li>';
}
?>