If and or statement

it should be:

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