I have a system with 3 different outputs and I want to execute them alternately whenever I have an input.
e.g. once an input 1 is detected, output 1 is executed, once input 2 is detected output 2 is executed so on so forth.
is there a way I can achieve this? Thanks!