Files
bot/apps/docs/docs/editor/blocks/logic/condition.mdx

20 lines
585 B
Plaintext
Raw Normal View History

2022-06-17 08:04:22 +02:00
---
sidebar_position: 2
---
import { YoutubeEmbed } from '../../../../src/js/YoutubeEmbed.jsx'
2022-04-09 09:47:49 -05:00
# Condition
The Condition block allows you to split your flow in two based on a condition.
2022-06-17 08:04:22 +02:00
<img src="/img/blocks/logic/condition.png" width="500" alt="Set variable" />
2022-04-09 09:47:49 -05:00
☝️ This can be translated to: "If 'Score' is greater than 20 then go to this path. Otherwise, go to the other path.".
A condition can contain different comparisons that are evaluated in order and linked with a logical operator: 'AND' or 'OR'.
## 3 minutes video overview
<YoutubeEmbed videoId="47KyLHzdpnY" />