Variables: What Every New Storyline User Wants to Know
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
• Worksheet• Starter practice files • Completed practice files, and• Example use case files
http://bit.ly/1wkXHs9
Session #316 BYOL – Elearning Guild DevLearn 2014
Kevin Thorn, NuggetHead Studioz, LLC
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
• understand what variables are and interested in advanced uses,• comfortable with variables and use them often,• fully understand what I’m talking about, or• get excited by the unlimited possibilities using variables,
If you…
this is NOT for you.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
• understand what variables are but not sure how to use them,• dabbled with variables, but not sure how to set up the logic,• have no idea what I’m talking about, or• get a headache by the mere mention of the word, “variable.”
If you…
this IS for you!
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Groups
TYPES
MANAGING
TRIGGERING
USES
CONDITIONS
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Only three TypesTYPES 1
NumberTrue/False Text
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Only one value; same TypeTYPES 2
TIP: Can’t fill a Text bucket with a Number variable.
Can fill a Text bucket with a numeric value.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Initial ValuesTYPES 3
Only the Text variable can have an empty initial value.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Groups
TYPES
MANAGING
TRIGGERING
USES
CONDITIONS
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Naming the CamelCase wayMANAGING 4
Cannot use the same name of a variable more than once.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Sort by Name, Type, ValueMANAGING 5
Sort by clicking header titles.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Changes after creating a variable MANAGING 6
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Groups
TYPES
MANAGING
TRIGGERING
USES
CONDITIONS
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Variables need a Trigger to change TRIGGERING 7
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
=Assignment same as SET TRIGGERING 8
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
=!NOT Assignment same as Toggle TRIGGERING 9
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Trigger stacking of variables TRIGGERING 10
TIP:If leaving a slide, ensure the Trigger adjusting the variable is first.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Groups
TYPES
MANAGING
TRIGGERING
USES
CONDITIONS
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Variables do not have States USES 11
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Number var ≠ Numeric Entry objectUSES 12
By default, the Numeric Entry object automatically generates a variable of the same name – Numeric Entry. Same for Text Entry.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
True/False like On/Off switchUSES 13
Like turning on/off a light switch when walking in or out of a room.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
I’m in control!USES 14
Trigger:Set [varName] equal to the typed value when the CONTROL loses focus.
MOUSE
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Set & PassUSES 15
SET variables:LessonScore1 = 20LessonScore2 = 15LessonScore3 = 10
PASS variables:LessonScoreTotal = 45
Pass (+Add) a variable(s) to another variable with this trigger(s). Pass as many as you need.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Referencing a variableUSES 16
variable: FirstName
%FirstName%To show (reference) a variable on a slide, flank the variable’s name with percent symbols.
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Groups
TYPES
MANAGING
TRIGGERING
USES
CONDITIONS
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Conditional VariablesADJUSTING 17
On the Conditional approval of
Queen Isabella Feona (IF)
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Toggle Boolean variableADJUSTING 18
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Adjusting Variable based on StateADJUSTING 19
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Adjusting State based on VariableADJUSTING 20
© 2014 NuggetHead Studioz, LLC. All Rights Reserved.
Kevin ThornNuggetHead Studioz, LLC
http://[email protected]@learnnuggets.com