Use another variable (2) on the object to determine if it has been clicked, set it to true when you click it and change the other variable (1), otherwise it is set to false when not clicked. Then on the event for changing variable 1 you say only if variable 2 = false.