Boolean logic for using multiple conditions is unclear
-
I’m using If Menu 0.8.2
I’ve found that if I’m setting multiple conditions to try to hide a menu item, the boolean logic is confusing.
I have 5 categories, one of which could be active.
If NONE of them are are active, then I would like the menu item to show.
But if any one of them are active, then the menu item should not show.
I initially set it up like this:
HIDE > Category 1 > OR
HIDE > Category 2 > OR
HIDE > Category 3 > OR
HIDE > Category 4 > OR
HIDE > Category 5 > +But that didn’t work to hide the menu item.
I had to make it:
HIDE > Category 1 > AND
HIDE > Category 2 > AND
HIDE > Category 3 > AND
HIDE > Category 4 > AND
HIDE > Category 5 > +From a boolean logic point of view, this seems wrong. Because only one of the categories will be TRUE. And if any one is TRUE then it needs to hide the menu item.
Is there an underlying logic that’s not obvious?
Thanks,
Norman
The topic ‘Boolean logic for using multiple conditions is unclear’ is closed to new replies.