Optimizing code for SPEED / STABILITY, ways to write, stepper example

The switch-case structure, commonly used in FiniteStateMachines is a good alternative to of complicated nests of if statements.

Have you seen these: