Knowledge base
Alternates between A and B output pins on each execution. Useful for toggle switches and ping-pong logic.