an obvious way of doing this is
CODE
if x != 0{x = 0}

or
CODE
if x not = 0{x = 0}


but this will give you an error message.

the way to right do it is:
CODE
if x <> 0{x = 0}

this means if x is less than 0 or x is greater than 0, set x to 0.