Multiple OR functions?

Dear Arduino users,

I have a question and I can't find an answer on the internet, so I was hoping you guys could help me out. I want a LED to lighten with three different push buttons. But if I use an If statement and then an OR-gate ( '||'). The led lights in only two different ways.

Can anyone help me out?

Welcome to the forum

Your topic was MOVED to its current forum category as it is more suitable than the original

Please post a complete sketch that illustrates the problem, using code tags when you do

Yes, but only if we can see your code.

Because the result of

if(A || B || C || D || E || F || ...) is always either a 1 or 0 for whatever permutations of A, B, C, D, E ... you have

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.