Flag
Technical block
Technical blocks allow the creation of more complex and innovative scenarios.
They generally have no visual impact, and focus on the logic of your scenario execution.
Video Tutorial
Take your first steps with this block thanks to the dedicated video tutorial!
Find all the Virtual Training Suite video tutorials in your VTS Client Account.
youtube.com/watch?v=gZHx7yFuZOY
Behavior
A Flag is a value with a name and two possible states: True or False.
Flags can be defined and modified from this Flag block. You can, at any moment of the scenario, create conditions based on the state of one or more Flags, using another block: the Check Flags block. Your scenario will thus react differently depending on the state of the Flags at a given point in the scenario.
This Flag block only defines or modifies the state of a Flag.
The green flag means it will set the state to True, when the red cross will set the state to False.
Parameters
The flag name can be anything, including special characters. This name will not be displayed during the scenario, so there is no localization for every language. It is only for the scriptwriter, during the edition process. So you can use simple and short names, like "Answer1", "Q2", "Flag_3", etc.
The default state of the flags is False.
Once modified, the state of a Flag is preserved until the scenario ends or until it is modified by another Flag block.
You can choose a Flag among those already defined in your scenario by clicking on the dropdown list to the right of the field, in order to fill the field automatically.
There is no limit to the number of Flags that can be defined in your scenario.
Creating conditions with Flags
Now that your flags have value, it's time to create conditions that use them.
This is where the Check Flags block comes in!
- ${ child.title }