Need some help using a variable to toggle button states

Oct 15, 2014

I have a simple 4-slide .story with a Main Nav page with 3 content slides. I would like to change the state of a Main Nav button to a custom 'Done' state once the 3 content slides in the section are complete.  The variable is incrementing but the button fails to change states. Was wondering if I could get some assistance to resolve this.

I am using this slide trigger on the Main page:  

Action: Change state of

On Object: mybutton

To State: DONE (a custom state of mybutton)

When: Variable changes

Object: myvariable

On condition: myvariable > = 3

On each of the three content pages, I have the following slide trigger:

Action: Adjust variable

Variable: myvariable

Operator: Add

Value: Value  1

When: Timeline ends

Object: current slide

The variable is of Type number and is set to 0 to start. On the nav page I see the %myvariable% increment to 3 after the three slides have been visited, but can't figure out how to get the button to change to the custom state. 

Thanks

Rick 

3 Replies
Richard Burgess

Thanks Michael. That worked.

I originally pursued the 'When variable changes' option based on an Articulate post that included the comment below.

Can you point me to a comprehensive doc or post on variables? 

Thanks again. 

Variables vs. States

Variables are different from States. States can only hold information for the current slide, while variables can hold data across slides, scenes—even the entire project.

Michael Hinze

Rick Burgess said:

Thanks Michael. That worked.

I originally pursued the 'When variable changes' option based on an Articulate post that included the comment below.

Can you point me to a comprehensive doc or post on variables? 

Thanks again. 

Variables vs. States

Variables are different from States. States can only hold information for the current slide, while variables can hold data across slides, scenes—even the entire project.

I think this post here provides everything you need to know about the different variable types and how to use them.

This discussion is closed. You can start a new discussion or contact Articulate Support.