Перейти к основному содержимому Перейти к дополнительному содержимому

Condition block

The condition block sets a condition on the automation flow. The outcome of the condition determines the subsequent flow of the automation.

alt text

A condition block is commonly used in following situations:

  • When an automation should continue only if the output of the preceding block is not empty.
  • When an automation adds a new record only if it does not already exist.
  • When an automation has alternative outcomes depending on a preceding block.
Примечание к подсказке

The condition block is identical to an if-else statement in a programming language.

Configuring a condition block

Configure the condition block to set up alternative outcomes based on preceding blocks.

Inputs

The condition functions as an if-else statement. If the condition block is evaluated to be true, the automation has one outcome, if false, it has a different outcome.

Conditions

The If field requires a field mapping from a previous block and a conditional operator.

Condition block inputs

condition block inputs

You can use one of the following operators:

  • equals
  • does not equal
  • is greater than
  • is greater than or equal
  • is less than
  • is less that or equal
  • is empty
  • is not empty
  • is text
  • is not text
  • is number
  • is not number
  • is object
  • is not object
  • is list
  • is not list
  • is email
  • is not email
  • is phone
  • is not phone
  • contains
  • does not contain
  • is true
  • is false

You can add more than one condition to the condition block if you want to create AND or OR conditions. Create a second condition, then toggle the When all/some conditions are met switch to create an AND or OR condition.

Condition block with two conditions as inputs

Multiple conditions on condition block

How to use a condition block

When you add a condition block to the canvas, there are YES and NO branches below the block. Optionally add blocks to these branches if they need to be executed when the condition is true or false.

An automation with a condition block

Condition example showing QCS reload and slack messages

Помогла ли вам эта страница?

Если вы обнаружили какую-либо проблему на этой странице и с ее содержанием — будь то опечатка, пропущенный шаг или техническая ошибка, сообщите нам об этом, чтобы мы смогли ее исправить!