If

Figure 1: If Node
Description

An If Node is used to execute either one or another part of a Flow, based on a condition. An If Node has two children: a Then Node and an Else Node. The condition is evaluated during the execution of the Flow. If the condition evaluates to true
, the Flow will take the path of the Then Node, if it evaluates to false
the path of the Else Node will be executed.
Creating a Condition

Direct CognigyScript
In the condition, you use Direct CognigyScript. This means that you don't have to use
{{ }}
. So, you just writeci.slots.city
. This will evaluate totrue
, if an Input Keyphrase with the tagcity
was found.
Rule Editor
The Rule Editor allows you to quickly create simple conditions.

Advanced Editor
The Advanced Editor allows you to write Conditions that go beyond one comparison.

Updated over 3 years ago