https://vimeo.com/1008041600
What are Variables?
A Variable is a value or state that can both be referred to and changed by behaviours. They are used for keeping track of a state throughout the life of the show or scene. They can allow you to perform functions such as creating sequences, counting up the amount of time something has happened, or used to adjust parameters of the show, such as audience size and difficulty rating.
- These values can take the form of Text, Numbers, On/ Off (boolean) and Option.
- Variables can either be added to the Show: Setup or Scene: Setup.
- If they are added in the Show: Setup, they become Show Variables and can be changed and referred to by any scene or dashboard widget in the show.
- If they are added in the Scene Setup, they can only be changed and referred to by that scenes' behaviours.
- They can be referred to in the When conditions OR in the If, Then, Otherwise action
- They are changed with the the Update scene variables & Increment scene variables actions.
Text Variable
- Creating a Text Variable means your state takes the form of text
- You must set a default state as a piece of text
- If you update this state, you need to update it with text
- if you refer to a Text Variable, you must write the text exactly as you have set it up
e.g. I have created a Text Variable with the default value of 'mango' in a scene. I want to refer to the default state of this variable in a behaviour so when adding a WHEN condition which refers to this text variable, I would type 'mango' into the field. I also want a different behaviour to change this variable to 'banana', so I would add a DO: Update scene variable action to that behaviour and type 'banana' in the text field. Another behaviour could refer to this 'banana' state, or change it to 'apple' and so on.
Number Variable