How do I prioritize scenarios?

Use prioritization of scenarios to define the order in which the software must follow when generating your text.

The software reads your template from the top down when generating a text. If you have more than one scenario in a sentence, the first scenario will always be the first one it looks at. The software will check if the conditions match the data it has received and if it does not, it will look at the second scenario and so on.

Unless the prioritization tells it otherwise of course. 

Since it is not possible to rearrange the scenarios once they are created, prioritization is the best and easiest way to change the order of the scenarios. 

Changing the prioritization

If you want to see or change the prioritizations of a set of scenarios you need to place the cursor on the sentence that contains the specific scenarios.

You will then see a little menu on the right side. Click on the button shown with a down-pointing arrow and a number.

Prioritization of the scenarios will show on the right side with numbers. Zero represents the scenario with first priority. 

If you want to make changes to the prioritization just edit the numbers.

Be aware that the prioritization is dynamic which means that the order of the scenarios changes at the same time you edit the numbers. 

When will it be relevant to change the prioritization?

You might wonder when it will be relevant to use the prioritization. And that is understandable. You do have a lot of control of the scenarios by making conditions. But there is one specific case where the conditions can not do all the work and you will have to use prioritization. 

And this is the case where a data input matches more than one of the scenarios. This could e.g. be if the scenarios have conditions based on categories and a product fits more than one category. Let us show you an example. 

Confused about all this talk about conditions? Take a look at "How do I set up simple conditions?".

In the example above you see three scenarios based on different categories. The first scenario says something about one category and the second scenario says something about another category. The third scenario says something about both categories.

And the data input matches all the conditions as it fits both categories. 

In this case, the software will take the first scenario as it is the first priority (0). It will not even look at the second or third scenario even though it also matches the conditions. This means that it will write the text that says something about the first category and not the other.

But what if you want it to choose the third scenario that says something about both categories without changing the data?

It is easy. Just change the prioritization. 

You have now changed the order in which the software looks at these scenarios. It will now always look at the scenario that says something about both categories before the others. 

For all the products that do not match both categories, the software will move on to one of the other scenarios and write the text that is relevant for its category.