I have two lines (red and green wires ), each holding arbitrary signals representing items (e.g. iron, stone, medium power poles) in arbitrary quantities (e.g. 5 iron, 1 stone, and 3 copper on green and 2 iron, 4 stone, and 2 medium power poles on red). Now I want to output the total amount of an item that is signalled via the red wire if any amount of this item is also signalled on the green wire -- so in my example the expected output would be 2 iron and 4 stone.
I can isolate the items that are signalled on both red and green:
- Feed green line into a decider combinator set to "Each > 0"/"Output Each: 1".
- Feed red line into another decider with the same settings.
- Direct the output of both combinators to the input of a third decider set to "Each = 2"/"Output Each:1".
Does anybody have an idea how I could approach this?