//the and operator in c sharp is "&&" (hold shift and 6 ;)) if(a == 0 && b == 0) { //both a and b is 0 }