I need a device with 2 inputs and an output that will pass the first input if that item exist in the second.
Example:
first input: 100 iron, 36 Circuits, 50 copper, 200 gears
second input: 1 iron, 1 gear
expected output: 100 iron, 200 gears
item amount and type is unknown(exept that it is Always 1 of each in the second input and no negatives anywhere)
any ideas?
Signal pass through help?
-
- Fast Inserter
- Posts: 230
- Joined: Wed Jun 08, 2016 6:16 pm
- Contact:
Re: Signal pass through help?
Input 1 Each + -2147483648 → Input 3
Input 2 Each * -2147483648 → Input 3
Input 3 Each > 0 → Output
When the signals match, the two -2147483648's cancel out due to integer overflow.
Input 2 Each * -2147483648 → Input 3
Input 3 Each > 0 → Output
When the signals match, the two -2147483648's cancel out due to integer overflow.
-
- Fast Inserter
- Posts: 230
- Joined: Wed Jun 08, 2016 6:16 pm
- Contact:
Re: Signal pass through help?
it worked, yay
I am not using overflows that much becauce it kind of feels a bit cheaty...
but i guess i could start using them more to see what happens...
I am not using overflows that much becauce it kind of feels a bit cheaty...
but i guess i could start using them more to see what happens...