How can I compare a boolean value to both true and false in a LINQ query?
If hideCompleted is true, I want to show values where IsCompleted is false
If hideCompleted is false, I want to show values where IsCompleted is true or false
Example:
(t1.IsCompleted ?? false == (hideCompleted == true ? false : (true || false)))
Just to be sure I understand you correctly, if hideCompleted is false, you don’t care what the value of IsCompleted is? If so…