Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# DeciderCombinatorCondition - Runtime Docs

## DeciderCombinatorCondition :: table

#### Table fields

first_signal | :: SignalID? | Defaults to blank
Defaults to blank
first_signal_networks | :: CircuitNetworkSelection? | Which circuit networks (red/green) to read `first_signal` from. Defaults to both.
Which circuit networks (red/green) to read `first_signal` from. Defaults to both.
second_signal | :: SignalID? | What to compare `first_signal` to. If not specified, `first_signal` will be compared to `constant`.
What to compare `first_signal` to. If not specified, `first_signal` will be compared to `constant`.
second_signal_networks | :: CircuitNetworkSelection? | Which circuit networks (red/green) to read `second_signal` from. Defaults to both.
Which circuit networks (red/green) to read `second_signal` from. Defaults to both.
constant | :: int32? | Constant to compare `first_signal` to. Has no effect when `second_signal` is set. When neither `second_signal` nor `constant` are specified, the effect is as though `constant` were specified with the value `0`.
Constant to compare `first_signal` to. Has no effect when `second_signal` is set. When neither `second_signal` nor `constant` are specified, the effect is as though `constant` were specified with the value `0`.
comparator | :: ComparatorString? | Specifies how the inputs should be compared. If not specified, defaults to `"<"`.
Specifies how the inputs should be compared. If not specified, defaults to `"<"`.
compare_type | :: `"and"` or `"or"`? | Tells how this condition is compared with the preceding conditions in the corresponding `conditions` array. Defaults to `"or"`.
Tells how this condition is compared with the preceding conditions in the corresponding `conditions` array. Defaults to `"or"`.

Concept used in

- LuaDeciderCombinatorControlBehavior::get_condition()
- LuaDeciderCombinatorControlBehavior::set_condition()
- LuaDeciderCombinatorControlBehavior::add_condition()
- DeciderCombinatorParameters