How do I code a robot auton that is activated via button with no wait times?

How do I code a robot auton that is activated via button with no wait times so i can still move parts of the robot such as a lift.

This can be done using tasks to run two loops simultaneously.

Uses if statements instead of while statements.