Hi! Basic question about AND/OR functions within IF node. In this n8n beginner tutorial, why does ‘AND’ work instead of ‘OR’? Even Maxim makes a mistake at first…
If the task is to take a set of e-mails and filter out any that contain “gmail” or “hotmail,” my initial instinct would be to use OR as well.
That’s how the binary logic works.
If you use OR condition, any email will match the filter “NOT gmail OR NOT hotmail IS true”
because a gmail domain will evaluate the statement as “false OR true IS true” which is always true
the same for hotmail domain - "true OR false IS true "