stay in the same value of analog input give output one time

How many inputs do you need? This only looks at 1 input. And to get a different printout instead of "x", change the ELSE statement to what I gave you.