r/factorio•
[deleted]

Fixed: filtering by "both" of two signals

Design / Blueprint

[deleted]

Posted Sep 24, 2017, 8:56 AM UTC · edited

54
raluth•

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

2
BlueprintBot•
1
Linosaurus•

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.

1
BlueprintBot•
1