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

Decider combinator: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
We do not document bug fixes in the history section
Tag: Manual revert
Gergely (talk | contribs)
Adding information on the else outputs
 
Line 7: Line 7:


== Function ==
== Function ==
The decider combinator allows specifying a list of conditions on the left side of the GUI and a list of outputs on the right side of the GUI. Generally whenever the conditions are satisfied the outputs are activated.
The decider combinator allows specifying a list of conditions on the left side of the GUI and a list of normal outputs and else outputs on the right side of the GUI. Generally whenever the conditions are satisfied the normal outputs are activated. When the conditions are not satisfied, the else outputs are activated.


A condition consists of a "first" input signal, a comparison (>, <, =, >=, <=, !=), and a "second" input signal or constant. Additionally, for each input signal the input wires to read the signal from can be specified. If both red and green are checked, the input values are summed.
A condition consists of a "first" input signal, a comparison (>, <, =, >=, <=, !=), and a "second" input signal or constant. Additionally, for each input signal the input wires to read the signal from can be specified. If both red and green are checked, the input values are summed.


If more than one condition is added, it is possible to change the connection of those using the logical operators AND and OR. An AND condition will result in true if all terms are true. An OR condition will return true if at least one of the terms is true.
If there are more than one conditions, a logical operator appears to the left of every adjacent pair of conditions. Each of these operators can be toggled between AND and OR with AND having higher order of precedence. An AND condition will return true if all terms are true. An OR condition will return true if at least one term is true.


Each output has the option to specify a constant value, or to take the input count from specified wires. If both red and green are checked, the input values are summed.
Each output has the option to specify a constant value, or to take the input count from specified wires. If both red and green are checked, the input values are summed.


The decider combinator can handle [[Circuit network#Logic signals|logic signals]]. <span id="output table"></span>The following table shows how different combinations of logic signals can be used:
The decider combinator can handle [[Circuit network#Logic signals|logic signals]]. If an <span style="color:#FFFF99">Each</span> is present in any of the conditions, the decider combinator evaluates the conditions for every input signal, resulting in <span style="color:#FFFF99">each</span> signal activating either the normal or else outputs. The following table shows how different combinations of logic signals can be used:


{| class="wikitable" style="text-align: center"
{| class="wikitable" style="text-align: center"
Line 32: Line 32:
!style="text-align: left"| <span style="color:#99FF99">Anything</span>
!style="text-align: left"| <span style="color:#99FF99">Anything</span>
| Evaluated on one signal that has a non-zero sum on the selected wires<sup>†</sup>
| Evaluated on one signal that has a non-zero sum on the selected wires<sup>†</sup>
| Evaluated on one signal that passes the <span style="color:#FFFF99">Each</span> conditions
| Evaluated on one signal that activates this output
|-
|-
!style="text-align: left"| <span style="color:#FFFF99">Each</span>
!style="text-align: left"| <span style="color:#FFFF99">Each</span>
| -
| -
| Evaluated on <span style="color:#FFFF99">Each</span> passing signal
| Evaluated on <span style="color:#FFFF99">Each</span> signal that activates this output
|-
|-
!style="text-align: left"| Specific signal
!style="text-align: left"| Specific signal
| Evaluated on the specified signal
| Evaluated on the specified signal
| Evaluated on <span style="color:#FFFF99">Each</span> passing signal, but the results are output on the specified signal instead
| Evaluated on <span style="color:#FFFF99">Each</span> signal that activates this output, but the results are output on the specified signal instead
|-
|-
|}
|}

Latest revision as of 10:42, 9 July 2026

Decider combinator

Recipe

0.5
+
5
+
5
1

Total raw

8
+
10
+
5

Map color

Health

Normal quality 150
Uncommon 195 Rare 240
Epic 285 Legendary 375

Stack size

50

Rocket capacity

50 (1 stack)

Energy consumption

1 kw (electric)

Mining time

0.1

Prototype type

decider-combinator

Internal name

decider-combinator

Required technologies

Produced by

Consumed by

Object description

The decider combinator is part of the circuit network and one of four types of combinators available in the game (with the other three being the constant combinator, arithmetic combinator, and selector combinator). It is used to make comparisons of signals on the network.

Function

The decider combinator allows specifying a list of conditions on the left side of the GUI and a list of normal outputs and else outputs on the right side of the GUI. Generally whenever the conditions are satisfied the normal outputs are activated. When the conditions are not satisfied, the else outputs are activated.

A condition consists of a "first" input signal, a comparison (>, <, =, >=, <=, !=), and a "second" input signal or constant. Additionally, for each input signal the input wires to read the signal from can be specified. If both red and green are checked, the input values are summed.

If there are more than one conditions, a logical operator appears to the left of every adjacent pair of conditions. Each of these operators can be toggled between AND and OR with AND having higher order of precedence. An AND condition will return true if all terms are true. An OR condition will return true if at least one term is true.

Each output has the option to specify a constant value, or to take the input count from specified wires. If both red and green are checked, the input values are summed.

The decider combinator can handle logic signals. If an Each is present in any of the conditions, the decider combinator evaluates the conditions for every input signal, resulting in each signal activating either the normal or else outputs. The following table shows how different combinations of logic signals can be used:

Different output results when the conditions pass
Input → No Each condition Each condition present
↓ Output
Everything Evaluated on every signal that has a non-zero sum on the selected wires -
Anything Evaluated on one signal that has a non-zero sum on the selected wires Evaluated on one signal that activates this output
Each - Evaluated on Each signal that activates this output
Specific signal Evaluated on the specified signal Evaluated on Each signal that activates this output, but the results are output on the specified signal instead

wires can be selected even if a constant value is specified

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.

History

  • 2.0.36:
    • Decider combinator output constant can be changed.
  • 2.0.7:
    • Received a UI overhaul.
      • Now displays input signals when configuring combinators.
      • Signals used by combinators can now be filtered between red, green, or both.
      • Multiple and/or operations can be performed in a single decider combinator.
  • 1.1.13:
    • Decider combinator can output an Anything signal, which returns exactly one matching signal.
  • 0.15.0:
    • Added additional operators to the Decider Combinator and Circuit Conditions.
  • 0.13.0:
    • Connected wires are highlighted when hovering over a combinator connected to the circuit network.
    • Combinators show input and output in alt mode.
    • More virtual signals for combinators.
    • Decider combinator "input count" option makes the combinator copy the count of the specified output signal from the input signals, instead of copying the count from the condition.
    • New combinator graphics.
  • 0.12.5:
    • Combinators now emit light.
  • 0.12.2:
    • Combinators no longer turn off when no wires are connected.

See also