to trigger character behavior, for example, advanced moves can switch back and forth using the switch...
^This. Check out Heath Close's tutorial about GLTCH. The zig zag gameplay is a typical example where you want to "switch" between two directions: left - right - left - right