Conditions with variables

Nov 25, 2016

Hi,

I have created two switches.  Left on/off and right on/off.  I would like the user to proceed to the next slide once one on and off have been visited (could be a left on and a right off or a right on and left off or right on/off or a left on/off etc..).  I have a variable on each layer to change to true once the timeline starts.  None of the conditions I have tried seem to work they way I need them to.  Where do I go from here?  I have attached the one slide for reference.

8 Replies
Chris Cole

Hi Kyna. I think this should be fairly straightforward, but first tell me a little more about what the interaction should look like...

  • Should the learner be able to click each toggle to any position in any arrangement? (Left on / right off, left on / right on, left off / right off, left off / right on). As you currently have it, I can't put one toggle in ON and the other toggle in OFF. They have to be both in ON or both in OFF. Just want to confirm how you want the interaction to behave.
  • Also, please confirm - you want the learner to be able to advance if they set a toggle to ON, and then to Off, even if it is the same toggle? So if the learner clicks the right toggle to On, then changes the right toggle to OFF, and never touches the left toggle, they can still proceed?

Regards,

Chris

Walt Hamilton

This sample does what I think you want based on your description and the .story file.  It enables the next button after the user has clicked one (or more) switch to the on position and returned it to neutral, and has clicked one (or more) switch to the off position and returned it to the neutral position, and in any order.

I think your problem with conditions comes from the fact that the easiest way to make this work is to combine AND and OR in conditions, and SL does not allow this.

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