Correct construct of if satement


could verify of constructed if correctly:

  if(xstop1 == high || xstop2 == high && hitxstop == false && state == tracking) {
    should true if either xstop high
     and hitxstop false , state euals tracking.
  }

the reason asking works in states.
anny suggestions?

harry

parentheses make intended logic more evident reader , compiler.


Arduino Forum > Using Arduino > Programming Questions > Correct construct of if satement


arduino

Comments