[MACRO] Variable Selector by Execute Lines

Forgive me if someone has already posted something like this, but I made a handy little macro that takes two execute lines, two variables, and then outputs one of the variables based on which input execute line fired.

I found that I kept having to make local variables in functions when choosing between which output to give, and this should cut out a step. It could easily be extendable by using an Int selector and more lines coming in and out. I’d love something like this to be added to a future version of the editor where an “Add Inputs” + button would add an “Input 3” and “Option 3” line.

Here’s a picture of the constructed macro for you to use:

Here’s a shot of me using an array version of the macro in action. It takes two inputs from a switch, and two different arrays for holding cards, and then channels them down to one array out and one output.