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

# Factorio Runtime Docs Version 2.0.77

# SignalFilter - Runtime Docs

## SignalFilter :: table or string

A signal filter may be specified in two ways, either as a string which is a virtual signal name or item prototype name or as a table.

When the LogisticFilter that this is used in has a non-zero `min` value then `comparator` must be `"="` (the default when writing) and `quality` is mandatory.

#### Table fields

type | :: SignalIDType? | The type of the signal filter.
The type of the signal filter.
name | :: string | Name of the signal.
Name of the signal.
quality | :: QualityID? | The prototype name of the signal's quality. `nil` for any quality. Mandatory if the LogisticFilter that this SignalFilter is being used in has a non-zero `min` value.
The prototype name of the signal's quality. `nil` for any quality. Mandatory if the LogisticFilter that this SignalFilter is being used in has a non-zero `min` value.
comparator | :: ComparatorString? | The comparator for quality. When reading, this will be `nil` for any quality. When writing it defaults to `"="`.
The comparator for quality. When reading, this will be `nil` for any quality. When writing it defaults to `"="`.

Concept used in

- LogisticFilter