0
Why does this condition cause error?
if (tossing()=1) {z++;}
2 Réponses
+ 2
1. use == instead of =
2. make sure tossing is a numeric value-returning function
+ 1
if(tossing()==) {z++}
single '=' is for assignment use == for conditions
if (tossing()=1) {z++;}