How to loop a program with a button

Instead of "pressed = true" try with "pressed = !pressed" :slight_smile: