Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## FeatureFlags :: struct - abstract Example code

A dictionary of feature flags and their status. It can be used to adjust prototypes based on whether the feature flags are enabled.

## Properties

- default
- sorted

quality | :: bool |
rail_bridges | :: bool |
space_travel | :: bool |
spoiling | :: bool |
freezing | :: bool |
segmented_units | :: bool |
expansion_shaders | :: bool |

expansion_shaders | :: bool |
freezing | :: bool |
quality | :: bool |
rail_bridges | :: bool |
segmented_units | :: bool |
space_travel | :: bool |
spoiling | :: bool |

## Properties

### quality :: bool

### rail_bridges :: bool

### space_travel :: bool

### spoiling :: bool

### freezing :: bool

### segmented_units :: bool

### expansion_shaders :: bool

## Example

    -- sets coal to spoil only when the spoiling feature flag is enabled
    if feature_flags["spoiling"] then
      data.raw.item.coal.spoil_ticks = 600
    end