function of x true or false