Dialogs are a key component in conversation design. Most are created with a trigger that causes them to respond to the BeginDialog event, which when invoked, executes conversational logic.

Occasionally, you may not want this default behavior to occur. The Condition property in the BeginDialog event lets you write an adaptive expression, which controls whether a dialog should be invoked or not.

In this guide, you will learn how to use the condition property to control if a dialog should be invoked or not.


Prerequisites

The following will be useful to know before proceeding:

An understanding of boolean logic is also helpful.


Begin Dialog Event

The condition field is accessed in the BeginDialog event. You can use this field to supply adaptive expressions which contain boolean logic.