No, this makes sense, you are using OR 🙂
so if any of your 'equal formula' are true, then the whole statement is true, like this:
True or False or False = True
but equally, for your 'not equal formula', since you are using 'or', if any of them are not true, then it would be visible
// if this is not equal to that email then its true
Lower(varUserEmail)<>Lower("JohnDoe@bank.com")
Or
// if its not equal to this other email then its true
Lower(varUserEmail)<>Lower ("JaneDoe@bank.com")
Or
// if its not equal to this third email then its true
Lower(varUserEmail)<>Lower ("MyEmail@bank.com")
So what that means, is that let's say that varUserEmail is "MyEmail@bank.com", looking at the first query, its true, as the email is not JohnDoe@bank.com so this would now be visible, and it would be true for the second query as its not equal to JaneDoe@bank.com and it would be false for the third item, as they Are equal. So you get
True or True or False = True
If, I assume, you are checking to see if varUserEmail is equal to NONE of those, then you need to use the And operator between them, as it needs not match the first AND not match the second AND not match the third, like this:
Lower(varUserEmail)<>Lower("JohnDoe@bank.com") And Lower(varUserEmail)<>Lower ("JaneDoe@bank.com") And Lower(varUserEmail)<>Lower ("MyEmail@bank.com")
This would mean it would only be true if all three of those statements are true
So let's use the example above where varUserEmail is "MyEmail@bank.com" in the negative logic above using the AND operator:
True and True and False = False
but if it was any other email than those three listed, like "bob@jane.com", then it would be:
True and True and True = True
Hope this helps a little bit, boolean logic can be tricky at times 😺
Cheers,
Sancho