> For the complete documentation index, see [llms.txt](https://support.emarketeer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.emarketeer.com/docs/docs_se/guider/journeys/journey-steps/journey-step-if-else.md).

# If / Else

Journey-steg som delar upp din Journey i en yes- och en no-förgrening utifrån villkor.

Steget If / Else delar upp din Journey i två förgreningar utifrån villkor. Kontakter som uppfyller villkoren följer förgreningen **yes** och övriga följer förgreningen **no**.

<div align="left" data-with-frame="true"><img src="https://2555292243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FicfGEyRadiE4k7sV4O4o%2Fuploads%2Fgit-blob-a6b9bff5bb6038033559fef6669c76330eabc13f%2Fjourney-step-if-else-settings.png?alt=media" alt="Dialogen IF / ELSE med en beskrivning och ett villkor om att ett formulär skickats in"></div>

## Inställningar

* **Description (optional)** — en kort text som visas på steget i Journey-byggaren, så att du snabbt ser vad steget kontrollerar.
* **Conditions** — klicka på **Set conditions** för att välja kriterier. Villkoren du anger visas i steget. Klicka på **Edit** för att ändra dem.

Klicka på **Apply** för att spara steget.

## Bygg förgreningarna

När du har lagt till steget delas din Journey i en förgrening **yes** och en förgrening **no**. Lägg till steg i varje förgrening för att bestämma vad som händer med kontakterna i den.

<div align="left" data-with-frame="true"><img src="https://2555292243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FicfGEyRadiE4k7sV4O4o%2Fuploads%2Fgit-blob-85e078c58d0c625f71b904787d38089f7d03444b%2Fjourney-step-if-else-branches.png?alt=media" alt="Steget If/Else i Journey-byggaren med sin beskrivning, uppdelat i förgreningarna yes och no"></div>

{% hint style="info" %}
Lägg alltid till ett väntesteg före ett If / Else-steg, annars utvärderas det omedelbart. Det är särskilt viktigt när du utvärderar interaktioner från ett tidigare steg, till exempel att ett e-postmeddelande öppnats.
{% endhint %}

Lägg till ett [Wait](https://support.emarketeer.com/docs/docs_se/guider/journeys/journey-steps/journey-step-wait.md)-steg före If / Else-steget om kontakten först ska hinna agera.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.emarketeer.com/docs/docs_se/guider/journeys/journey-steps/journey-step-if-else.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
