How to program teleop encoder turns in robotc for vex iq

How would I create a teleop program in robotc graphical which would turn 2 motors a specific number of rotations when a button on the controller is pressed? I tried using an If statement but it only works one time and the action can’t be repeated.

while loop (20 chars)

I tried that but I have the same problem. It only works one time.

do you have a delay inside the loop of 20 ms