Conditions are the guideline of the software. A condition can be simple or it can be advanced. Learn how to set up simple conditions in your template.
Content
Note: make sure to read "What are sentences and scenarios" before going further. This will give you an introduction to conditions and their function in your template.
Scenarios are provided with conditions to tell the software which scenario to choose based on the data. This makes them a sort of guideline for the software. It is also a way for you to keep control of the output.
Create a condition
It only takes three steps to create a condition.
Step one: Choose the data variable
When opening a scenario you will see a little bar under the name. Here you click on "add".
A box will pop up on the right side of the template. This will show you all the available data.
You will then have to choose which data variable the condition must be based on. Use the search bar or scroll to find the wanted data.
In this case, we will go for the data variable "Type".
Clicking on the chosen variable will give you the operators in which you create the condition.
Step two: Choose the operator
The operators available will depend on the value of the field (numbers, text e.g.).
- Equal to = the data must be the same as the chosen value
- Not equal to = the data must be everything else than the chosen value
- Contains = the data must contain the chosen value (text)
- Not contains = the data must not contain the chosen value (text)
- Set = the data must be set
- Not set = the data must not be set
- Greater than = the data must be greater than the chosen value (number)
- Greater or equal than = the data must be greater than or equal to the chosen value (number)
- Less than = the data must be less than the chosen value (number)
- Less or equal than = the data must be less than or equal to the chosen value (number)
Want to know more about the different operators? See "Which operators do I have when creating conditions?"
In this case, we choose the operator "Equal to". Clicking on this will open the next step where you have to set the specific value for the condition.
Step three: Choose a variable or define a constant
The value can be an existing data variable or a defined constant (number, text e.g.). You can search or scroll your way to a specific variable or define a constant value by typing a text or a number.
To go further with this example we will write the text "Boxershorts" as a constant value. Be aware that the software does not recognize spelling errors. Make sure to write the text in the same way as it is written in the data.
You have now completed all three steps and can press "Save".
After this, the condition will be set to the scenario and will appear on the bar under the name.
What does the condition say?
The condition shown above says that if type (chosen data variable) is (chosen operator) "Boxershort" (chosen value) then the condition is true and the software will choose this scenario when writing the text for this specific data input.
The little checkmark (✔️) tells you that the condition is true. If the condition is not true it will appear with a cross (❌). It is based on the data you've loaded from browse data so a "not true" condition is still correctly created.
If you see a small triangular sign (⚠️) next to the condition there is an error in your condition. It can e.g. be if the data input does not have the chosen data variable (it could, in this case, be, if the data input does not have a type).
Changing a condition
If there is an error in the condition or you want to make changes, just click on the condition and the box with all three steps will pop up. Here you will be able to make the changes you need.
Creating more conditions to one scenario
There is no limit to how many conditions a scenario can have. And the procedure is almost the same. Just click on the "+" on the right side of the existing condition.
This will open a small box where you can choose between "Or" or "And".
- Or = one or the other condition must be true for the scenario to apply
- And = all of the conditions must be true for the scenario to apply
In this case, we choose "Or".
We will spare you to go through all the steps again and just tell you the result.
The condition now says that the first condition must be true or the title (chosen variable) must contain (chosen operator) "Boxershorts" (chosen value) for the scenario to apply.
If we had chosen "And" instead then the type must be "Boxershorts" and the title must contain "Boxershorts" for the software to choose this scenario. This is actually the case for the scenario above.
Deleting a condition
If you want to delete a condition just click on the little trashcan on the right side of the condition.
We recognize that it may not sound simple, but we promise that it is! Try it out. Before you know it you will create conditions like you have never done anything else in your entire life.
And then you can always expand your skills with the advanced conditions!