Lanka Lanka docs

Condition

Checks a condition and continues the dialog down the "Yes" branch when it holds, or the "No" branch when it does not.

The "Condition" step in the editor

When to use it

  • Has the person already given a phone number? — don't ask again.
  • Is this the bot's owner? — show the admin menu.
  • Is the order over 1000? — offer free delivery.

How to set it up

  1. Pick a variable, a comparison (equals, greater than, contains, is set…) and a value.
  2. Several rules: "+ and" adds a rule that has to hold together with the others, and "+ or" a separate group of rules. The condition is met when at least one group holds.
  3. Add steps under "Yes" and under "No".