//the not operator of c sharp is "!" you can basicly revers a if statement! if(a != 0) { //if a is not equals to 0 }