Decider combinator: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Languages}} | {{Languages}} | ||
{{ | {{:Decider combinator/infobox}} | ||
}} | |||
The {{PAGENAME}} is part of the circuit network and one of three types of combinators available in the game. It is used to make comparisons of signals on the network. Signals can be compared using "is greater than" (>), "is less than" (<) or "is equal to" (=). | The {{PAGENAME}} is part of the circuit network and one of three types of combinators available in the game. It is used to make comparisons of signals on the network. Signals can be compared using "is greater than" (>), "is less than" (<) or "is equal to" (=). |
Revision as of 21:56, 5 September 2016
The Decider combinator is part of the circuit network and one of three types of combinators available in the game. It is used to make comparisons of signals on the network. Signals can be compared using "is greater than" (>), "is less than" (<) or "is equal to" (=). Input contacts are to the left in the above picture, outputs on the right.
Function
The internal logic process has three steps:
1) Values for each individual input signal(s) (items of the same name) on the red and green wires are summed within the combinator.
2) The Decider combinator GUI specifies a "first" input signal, a comparison (>, <, =), and a "second" input signal or constant.
3) If the comparison returns true, the output is a new signal (any name) with either the input value of the selected signal, or 1.
4) Using the Everything output with input -> output will pass all nonzero input values to the output as long as the condition is true. Using the Everything output with "1" will output 1 ONLY for all non-zero inputs.
5) The Each input will re-apply the comparison for each input signal individually, and will pass the selected output for each input that passes the conditional.
6) The Everything input functions as a logical AND, and will return true only if ALL non-zero inputs pass the conditional.
7) The Anything input functions as a logical OR, and will return true if ANY non-zero input passes the conditional.
The decider combinator can handle special signals.
With both the Arithmetic and Decider combinator, there is one tick (60th of a second) of latency before the output signal is ready to be used as an input into a circuit network.
See Also
- Arithmetic combinator
- Constant Combinator
- Combinator Tutorial <-- Description of Combinator Logic Gates
- Circuit network