I know that sounds very confusing, but I have a few examples.
I I want it so that I can flick something like 3 levers and have the output be the leftmost one.
If I flicked the first two, the middle one would turn on, and if I flicked only the right one, the right one would turn on.
During During this, all of the other ones would be off.
Here are some examples:
I could use either command blocks or survival redstone. Thank you so much!