I have an array with various keys and values that are properties from a pipe delimited data file. I need to exclude certain users based on if a user (an array within a “data” array) has two specific properties set to two specific values as well as a 3rd value not being set to null. Example:
if ($properties[‘value3’] != null && !($properties[‘value1’] && $properties[‘value2’]))
This statement removes all users that have value3 null and all value1 and all value2, but I want users to only be exclude when a single user has both value1 and value2 set. I still need users that have one or the other values to be included. What am I missing in my logic?