Run an if-else once

How are you de-bouncing the button. Look at the examples.

Mark