If your int, x is going to be used like a bool, declare x as a bool. If your int is supposed to have some value, but you want to inquire if it is some value (like zero), then note that explicitly as ...