3
Suppose I have the following if
if(a || b || c == true)
In this case, just one of the values is true to activate the condition, but I would like the condition to activate only when at least 2 of the past values are true, is it possible? If yes, how?
If I have understood correctly, the question demands that two of the conditions be true; in this answer, if
A
andB
are false andC
true, he enters theif
. Or did I misunderstand? P– rLinhares
If A and B are true at the same time, OR the C is true, enter the IF. That is, if O is true, B is false and C is true, it will enter by the rule of C. .
– David Dias