Expertsystemen

 

Getting started with conditions

Conditions are important to understand in xxllnc Expertsystemen. They can be used for all kinds of things, such as guiding a user through a specific path or creating sections in a document.

The basic idea is simple: the Studio does something if a condition is met. For example, if you answer ‘yes’ to a question about more information, you will be asked to enter your e-mail. If you answer ‘no’, the model is finished.

We will illustrate this with an example. In the example, a model asks about the data of a partner if you have one. Imagine a decision tree model with three nodes: the start node, an end node and a node partner_details. Both nodes are connected to the start node, and a question in the start node asks if the user has a partner. The model looks like this:

the example model
the example model

The next step would be to add the condition. In the start node, you can double click the connections from start to the other nodes. If you do so, a screen will pop up with the connection and an empty condition. In this screen, you can select the drop-down menu to choose a condition:

editing a condition
editing a condition

Make sure that if you select ‘Yes’ in the question, the user will go to the partner details and if you answer ‘No’ the user will go to the end node. Your action menu should look like this:

resulting action menu
resulting action menu

If you want to know more about conditions or use more advanced features, please see Conditions.