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

# Factorio Runtime Docs Version 2.0.77

# WaitCondition - Runtime Docs

## WaitCondition :: table

#### Table fields

type | :: WaitConditionType |
compare_type | :: `"and"` or `"or"`? | Specifies how this condition is to be compared with the preceding conditions in the corresponding `wait_conditions` array. Always present when reading, defaults to `"and"` when writing.
Specifies how this condition is to be compared with the preceding conditions in the corresponding `wait_conditions` array. Always present when reading, defaults to `"and"` when writing.
ticks | :: uint32? | Number of ticks to wait when `type` is `"time"`, or number of ticks of inactivity when `type` is `"inactivity"`.
Number of ticks to wait when `type` is `"time"`, or number of ticks of inactivity when `type` is `"inactivity"`.
condition | :: CircuitCondition or BlueprintItemIDAndQualityIDPair? | This is a CircuitCondition and only present when `type` is `"item_count"`, `"circuit"`, `"fluid_count"`, `"fuel_item_count_all"`, or `"fuel_item_count_any"`, and a circuit condition is configured. This is a BlueprintItemIDAndQualityIDPair and only present when `type` is `"request_satisfied"` or `"request_not_satisfied"`
This is a CircuitCondition and only present when `type` is `"item_count"`, `"circuit"`, `"fluid_count"`, `"fuel_item_count_all"`, or `"fuel_item_count_any"`, and a circuit condition is configured. This is a BlueprintItemIDAndQualityIDPair and only present when `type` is `"request_satisfied"` or `"request_not_satisfied"`
planet | :: string? | Name of the space location. Only present when `type` is "`any_planet_import_zero`" and a planet is configured.
Name of the space location. Only present when `type` is "`any_planet_import_zero`" and a planet is configured.
station | :: string? | Name of the station. Only present when `type` is "`specific_destination_full`", "`specific_destination_not_full`", "`at_station`", or "`not_at_station`", and a station is configured.
Name of the station. Only present when `type` is "`specific_destination_full`", "`specific_destination_not_full`", "`at_station`", or "`not_at_station`", and a station is configured.
damage | :: uint32? | Amount of damage to take when `type` is `"damage_taken"`.
Amount of damage to take when `type` is `"damage_taken"`.

Concept used in

- LuaSchedule::change_wait_condition()
- LuaSchedule::get_wait_condition()
- LuaSchedule::get_wait_conditions()
- AddRecordData
- BlueprintScheduleInterrupt
- BlueprintScheduleRecord
- ScheduleInterrupt
- ScheduleRecord