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

# Factorio Runtime Docs Version 2.0.77

# ComparatorString - Runtime Docs

## ComparatorString :: union

A string that specifies how the inputs should be compared.

While the API accepts both versions for `"less/greater than or equal to"` and `"not equal"`, it'll always return `"≥"`, `"≤"` or `"≠"` respectively when reading them back.

#### Union members

`"="` | "equal to"
`">"` | "greater than"
`"<"` | "lesser than"
`"≥"` | "greater than or equal to"
`">="` | "greater than or equal to"
`"≤"` | "lesser than or equal to"
`"<="` | "lesser than or equal to"
`"≠"` | "not equal to"
`"!="` | "not equal to"

Concept used in

- BlueprintItemFilter
- BlueprintLogisticFilter
- CircuitCondition
- CircuitConditionDefinition
- CompiledLogisticFilter
- DeciderCombinatorCondition
- EntityIDFilter
- EntityPrototypeFilter
- FluidPrototypeFilter
- ItemFilter
- ItemIDFilter
- ItemPrototypeFilter
- LuaEntityDamagedEventFilter
- LuaSegmentedUnitDamagedEventFilter
- QualityCondition
- RecipePrototypeFilter
- SignalFilter
- SpaceLocationPrototypeFilter
- TechnologyPrototypeFilter
- TilePrototypeFilter
- UpgradeMapperSource