Update: here's the revised version that uses bit logic rather than abusing mathematics. Computers are much better (faster) at bit logic than arithmetic, and it is simply pleasing to me. Can be extended to more bits (i.e. intersect 5 inputs) trivially - for the final comparison, use the lane choices you want (on/off etc) in binary, as an integer.
Update: here's the revised version that uses bit logic rather than abusing mathematics. Computers are much better (faster) at bit logic than arithmetic, and it is simply pleasing to me. Can be extended to more bits (i.e. intersect 5 inputs) trivially - for the final comparison, use the lane choices you want (on/off etc) in binary, as an integer.
!blueprint https://pastebin.com/RBa4jDM5
Blueprint Image
This bit field logic is really elegant!
For the 0 or 1 two signal case you can also use x+y-1, it leaves a positive signal only when both are 1.