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

# Factorio Runtime Docs Version 2.0.77

# CircuitConditionDefinition - Runtime Docs

## CircuitConditionDefinition :: table

#### Table fields

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 `"<"`.
first_signal | :: SignalID? | Defaults to blank.
Defaults to blank.
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`.
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`.
fulfilled | :: boolean? | Whether the condition is currently fulfilled.
Whether the condition is currently fulfilled.

Concept used in

- LuaGenericOnOffControlBehavior::circuit_condition
- LuaGenericOnOffControlBehavior::logistic_condition
- LuaLogisticContainerControlBehavior::circuit_condition
- LuaProgrammableSpeakerControlBehavior::circuit_condition
- LuaRailSignalBaseControlBehavior::circuit_condition
- LuaSplitterControlBehavior::input_left_condition
- LuaSplitterControlBehavior::input_right_condition
- LuaSplitterControlBehavior::output_left_condition
- LuaSplitterControlBehavior::output_right_condition
- LuaTurretControlBehavior::ignore_unlisted_targets_condition
- LuaWallControlBehavior::circuit_condition
- DisplayPanelMessageDefinition