If and or statement

so

if (data[2] > 0 || data[0] > 0 && data[1] == 0) 

if ether one is true
&& handled first