Assignment/NOT Assignment Trigger Operators
Hello, Articulate Community!
I'm posting this discussion as a request from one of our Articulate users, and to provide information about Assignment/NOT Assignment Operators in Storyline to others as well.
When you add an "Adjust Variable" trigger, you might notice the "Assignment" and "NOT Assignment" operators and ask what these are, what they do, and when can they be used.
ASSIGNMENT
The Assignment trigger operator 'assigns' a value to an existing variable on trigger. When you create an Adjust Variable(action) trigger, the Assignment operator will instruct the trigger about what value it is adjusting to.
For example - a Text variable. If I want a text variable to be set to "Peter" when I click on a button, the trigger window would be:
Action: Adjust variable
Variable: (name of the text variable created)
Operator: = Assignment
Value: Value, "Peter"
When: User clicks
Object: (Button/object name)
So when I click a button, it will 'assign' a value for the variable.
The Assignment operator can be used on text, number, and True/False variables.
NOT ASSIGNMENT
The NOT Assignment operator on the other hand, will 'not assign' a value. Setting the operator to NOT Assignment will adjust the value to its opposite.
Note that NOT Assignment can only be used on True/False variables.
For example - if a True/False variable's initial value once the slide loads is True, and I don't want it to be True when I click a button:
Action: Adjust variable
Variable: (name of True/False variable created)
Operator: = NOT Assignment
When: User clicks
Object: (Button/object name)
When the slide/timeline starts, the variable is set to True. But once I click on the button, it will not be True (will be False). If it's been set to False (from NOT Assignment), and I click the same button again, it will not be False (will be True). You would use the = NOT Assignment operator if you want to adjust the value to its opposite.
Here's a sample output (slide 1 for Assignment, slide 2 for NOT Assignment):
https://360.articulate.com/review/content/d829c31a-55d4-4d17-8359-c467e1033f9e/review
Slides 3 and 4 are some possible applications of Assignment and NOT Assignment.
Also, If you wish to play around and tinker with the project file, you can download it here: