In other languages:

Virtual signals: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Replace incorrect term)
m (→‎Logic signals: https://forums.factorio.com/viewtopic.php?p=303267#p303267 (existential/universla quantification))
Line 11: Line 11:


=== Everything ===
=== Everything ===
''Everything'' can be used on the left side in conditionals. The condition will be true when the condition is true for each input signal. The condition is also true if there are no signals.
''Everything'' can be used on the left side in conditionals. The condition will be true when the condition is true for each input signal. The condition is also true if there are no signals. This means that the ''everything'' signal behaves as [[:Wikipedia:universal quantification|universal quantification]].


The output of a [[decider combinator]] may also use ''everything''. When used the combinator will output all signals that pass the condition. The ''everything'' and ''anything'' signals are the only signals used in conditions that can make multiple signals pass a condition.
The output of a [[decider combinator]] may also use ''everything''. When used the combinator will output all signals that pass the condition. The ''everything'' and ''anything'' signals are the only signals used in conditions that can make multiple signals pass a condition.


=== Anything ===
=== Anything ===
''Anything'' can be used on the left side of conditions. The condition will be true when the condition is true for at least one signal.
''Anything'' can be used on the left side of conditions. The condition will be true when the condition is true for at least one signal. This means the ''anything'' signal behaves as [[:Wikipedia:existential quantification|existential quantification]].


=== Each ===
=== Each ===
''Each'' can only be used in left input side and output of [[decider combinator|decider]] and [[arithmetic combinator|arithmetic]] combinators. The signal can only be used as output when also used as input. When used in both the input and output it makes a combinator perform its action on each input signal individually. The combinator will output the sum of each of the actions if only used in the input.
''Each'' can only be used in left input side and output of [[decider combinator|decider]] and [[arithmetic combinator|arithmetic]] combinators. The signal can only be used as output when also used as input. When used in both the input and output it makes a combinator perform its action on each input signal individually. The combinator will output the sum of each of the actions if only used in the input.

Revision as of 12:49, 19 August 2017


File:Virtual signals.png
The interface for selecting a virtual signal
The icons of the three logic signals

Virtual signals are special non-item signals used in circuit networks. Other than the three logic signals, virtual signals do not behave differently from item signals.

45 virtual signals can be sent over a network. They include the digits zero through nine, the letters A through Z and the colors red, green, blue, yellow, magenta, cyan, white, gray and black.

Logic signals

Three of the virtual signals cannot be sent over a network but apply special logic to multiple signals.

Everything

Everything can be used on the left side in conditionals. The condition will be true when the condition is true for each input signal. The condition is also true if there are no signals. This means that the everything signal behaves as universal quantification.

The output of a decider combinator may also use everything. When used the combinator will output all signals that pass the condition. The everything and anything signals are the only signals used in conditions that can make multiple signals pass a condition.

Anything

Anything can be used on the left side of conditions. The condition will be true when the condition is true for at least one signal. This means the anything signal behaves as existential quantification.

Each

Each can only be used in left input side and output of decider and arithmetic combinators. The signal can only be used as output when also used as input. When used in both the input and output it makes a combinator perform its action on each input signal individually. The combinator will output the sum of each of the actions if only used in the input.