How to write a condition in which if(w==(x&z)){......} ?
For the condition to be satisfied, w must be equal to both x and z . In this case, if w is equal to one of the variables, and the other is not equal, for example, then the condition becomes true , and it is only necessary that if all variables are equal, the condition becomes true .

    1 answer 1

    If I understand you correctly, then:

     if( (w==x) && (w==z) ){...}