Skip to main content
Participating Frequently
December 6, 2016
Answered

Creating a conditional action based on state change

  • December 6, 2016
  • 2 replies
  • 1196 views

Hello everyone!!!

I am trying to create a conditional action that will show the playbar once the conditions are met. In this case I want my users to interact with all my clickable menu items before advancing to the next slide.

My menu buttons have state changes that turn the buttons green once they have been clicked. Is there a way to assign a color variable?

I want my action to go like this:

user clicks menu button1 ----> menu button1 turns green

user clicks menu btuoon2 ---> menu button2 turns green

etc.

etc...

Once all menu buttons have changed states...playbar appears allowing user to proceed to next slide.

    This topic has been closed for replies.
    Correct answer Lilybiri

    You'll have to create user variables to track, there is nothing available out of the box which detects a state or color change.

    Create one Boolean variable for each button, with a default value of 0. I'll label them v_one, v_two....

    The Success action for each button will have to be a conditional action with two decisions:

    First decision 'Always' will always be done because of the condition

    IF 1 is equal to 1

       Change state of Bt_One to Green

       Assign v_one with 1

    Second decision checks the value of all the variables

    IF v_one is equal to 1   AND

         v_two is equal to 1   AND

         ....

    Show Playbar

    Duplicate that action as many times as you need, only the first decision will have to be changed. Because of the second decision shared actions are not possible.

    2 replies

    Participating Frequently
    December 19, 2016

    The method describes by Lilybiri worked as promised for my needs. I think it can probably be modified in some way to fit you are trying to accomplish.

    Lilybiri
    LilybiriCorrect answer
    Legend
    December 6, 2016

    You'll have to create user variables to track, there is nothing available out of the box which detects a state or color change.

    Create one Boolean variable for each button, with a default value of 0. I'll label them v_one, v_two....

    The Success action for each button will have to be a conditional action with two decisions:

    First decision 'Always' will always be done because of the condition

    IF 1 is equal to 1

       Change state of Bt_One to Green

       Assign v_one with 1

    Second decision checks the value of all the variables

    IF v_one is equal to 1   AND

         v_two is equal to 1   AND

         ....

    Show Playbar

    Duplicate that action as many times as you need, only the first decision will have to be changed. Because of the second decision shared actions are not possible.

    Participating Frequently
    December 6, 2016

    OOOoooHHHHHhhhh....ok..makes sense...Let me go try it out.

    Lilybiri
    Legend
    December 6, 2016

    Good luck!