# Introduction to conditions

Conditions allow you to control the availability of choices offered to the reader. With them, you can create narratives that dynamically adapt to the reader's previous actions.

Concrete example

The reader can only talk to the princess if they have previously found the royal medallion. Without this condition, the option simply does not appear.

# Types of conditions

Compare a variable to a reference value. You have several operators available:

  • Equal to — The variable must have exactly this value
  • Greater than — For numeric variables
  • Less than — For numeric variables
  • Greater than or equal to — Includes the boundary value
  • Less than or equal to — Includes the boundary value

# Setting up a condition

1

Open the step editor

Navigate to the target step and find the "Parent links" section.

2

Select a link

Click on the parent link to which you want to add a condition.

3

Add a condition

Use the dropdown menu to choose the type of condition.

4

Configure the parameters

Fill in the required values (variable, comparator, value...).

Watch out for dead ends

Make sure your conditions do not create situations where the reader would be stuck with no available choices. Always provide a default option.