write in this way 

if(result1 == result2 && result1 == result3)