I have booleans A, B, C, D set to false.
I have following code if (A && B || C && D) {Debug.i("Check", "stars")}
When will I get "stars"
message?
- When A and B OR C and D set to true.
- When A, B/C, D set to true
=============================
ANSWER
A && B || C && D
should be treated as
(A && B) || (C && D)
Aucun commentaire:
Enregistrer un commentaire