In other languages: Čeština Deutsch Français 日本語 Русский Українська 简体中文

Decider combinator: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:


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" (=).
Input contacts are to the left in the above picture.
Input contacts are to the left in the above picture, outputs on the right.


== Function ==
== Function ==
The internal logic process has three steps:
The internal logic process has three steps:


1) All input signals on the red and green wires are summed within the combinator.
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 specified comparison (>, <, =) is performed on the selected signal(s).
2) The combinator GUI specifies a "first" input signal, a comparison (>, <, =), and a "second" input signal or constant.


3) If the comparison returns true, the selected output signal is sent to the output nodes.
3) If the comparison returns true, the output is a new signal (any name) with either the same value as "first" input signal, or 1.


The decider combinator can handle [[Virtual signals#Logic signals|special signals]].
The decider combinator can handle [[Virtual signals#Logic signals|special signals]].

Revision as of 00:52, 12 April 2016

Template:Logic

DeciderSprite.png

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 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 same value as "first" input signal, or 1.

The decider combinator can handle special signals.

See Also