Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://wiki.factorio.com/Arithmetic_combinator
You have 3 boolean operators AND, OR, and NOT.
IF X=? AND Y=? THEN Z=? for the statement (Z) to return TRUE both conditions have to be true.
IF X=? OR Y=? THEN Z=? for the statement (Z) to return TRUE either of the conditions have to be true.
IF X=? NOT Y=? THEN Z=? for the statement (Z) to return TRUE both conditions have to be false.
This used to be necessary when making trains go to stations based on offer and demand for example but that was simplified when the devs added the train limits.
I think those game might give you idea how wires and operators work.
I put it this way in Factorio wise operators.
Factory Items >> IF X=A AND Y=B Then Z=AB << IF-THEN statement
Trains >> A AND B go to AB << GO-TO statement
NOT gates are inverters which implies to both items (not same output the other) and trains (not same items transported do not go to base).
Trains may use IF-THEN statements only if items are stored in storage chests or whatever chests you built besides stops then go to base with items transported. Yes, left and right directions is one of them like driving your car, tank, or buggy for instance.
The uses in game are pretty niche, but they can be useful if you know what you're doing. Instead of a single 32-bit number, you could think of a signal as an array of 32 1-bit true or false flags. Or 16 2-bit values, 8 4-bit values, etc. For a representation like that, shifting may be important to be able to get at the right field of that array. If you want a static element, you could just do the math in your head, but if you want to do it dynamically based on some other variable, you need to shift it.