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

# Factorio Runtime Docs Version 2.0.77

# AchievementPrototypeFilter - Runtime Docs

## AchievementPrototypeFilter :: table

#### Table fields

filter | :: `"allowed-without-fight"` or `"type"` | The condition to filter on.
The condition to filter on.
mode | :: `"or"` or `"and"`? | How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
invert | :: boolean? | Inverts the condition. Default is `false`.
Inverts the condition. Default is `false`.

Other attributes may be specified depending on `filter`:

#### `type`

type | :: string or array[string] | The prototype type, or a list of acceptable types.
The prototype type, or a list of acceptable types.

Concept used in

- LuaPrototypes::get_achievement_filtered()
- PrototypeFilter