Condition

A Condition block steers the conversation in a way or another if variables meet certain condition(s).

Add a Condition block by dragging and dropping itarrow-up-right to your flow.

Condition block tab.

Condition blocks enable your bot to redirect the user to another block depending on the conditions of the session variables, following an if-then logic.

circle-info

Condition blocks shouldn't be confused with Go-to connections. Even if they work in a similar way, Go-to connections do not check any variables.

What a Condition block (here: Class redirect) looks like on your canvas.

Set up your Condition block logic

Condition blocks follow an if-then logic, where each condition leads to a certain result. The bot will understand this logic by reading it from the top to the bottom.

In other words, this means that:

  • If statement A is true,

    • then the bot will Go to block X

  • Else if statement B is true,

    • then the bot will Go to block Y

  • Else,

    • then the bot will Go to block Z.

circle-exclamation
circle-info

If you want to check variables without taking into account their case, please select a 'case insensitive' condition in the dropdown.

🆕 Expression syntax (beta)

We launched expression syntax as a beta feature. You can use expression syntax inside Condition blocks as variables. Read more below 👇

Expression syntaxchevron-right

Last updated

Was this helpful?