If and or statement

Looking for

if data[2] > 0
// if true then

if data[0] > 0 && data[1] == 0
// if true then