Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

If/Else - stop action in middle?

New Here ,
Jun 01, 2016 Jun 01, 2016

Hi!

So, I have an if/else statement that changes the state of the screen.

1 button to be the pivotal element. 13 different states. 1 variable to increase each time a state is viewed so a learner will be guided through each state seamlessly.

The idea with this is to have only one action, and to save so much confusion (and troubleshooting) in the timeline by using state changes vs 13 different groups.

So the if/else statement has 12 tabs. Each tab will change the state and increase a variable by one. But because the action naturally wants to play through all 12 tabs, EVEN IF it finds a statement to be true, the variable is automatically increased all the way from 0 (or 1) to 13 and the state change goes to the last state. The learner never sees the middle.

How do I stop an if/else statement from progressing from the various tabs when it finds its first true statement?

I added a pause to the action, and that did not help at all.

Do I need 13 different actions and 13 groups of graphics/text vs states?

NOTE: the course is still very much under construction; please disregard ugly screen shots.

Screen Shot 2016-06-01 at 7.17.50 AM.png

Screen Shot 2016-06-01 at 7.18.23 AM.png

194
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 01, 2016 Jun 01, 2016

You simply cannot stop an advanced action in Captivate, it will always be evaluated totally. You have to set up the sequence of the decisions in a reverse order so that you don't override the present situation (in decision 1) with a next decision  (I suspect this will happen with decision 2). Have a look at this article, which I wrote following a similar wrong set up by another user. You can use increment or decrement instead of assign. I explain here how to set up correctly (it is in the ClickC

...
Translate
Community Expert ,
Jun 01, 2016 Jun 01, 2016

You simply cannot stop an advanced action in Captivate, it will always be evaluated totally. You have to set up the sequence of the decisions in a reverse order so that you don't override the present situation (in decision 1) with a next decision  (I suspect this will happen with decision 2). Have a look at this article, which I wrote following a similar wrong set up by another user. You can use increment or decrement instead of assign. I explain here how to set up correctly (it is in the ClickClick part):

http://blog.lilybiri.com/blog-after-posterous-clickclick

If you want more help, please post a screenshot of the ​complete​ action: there is a Preview button at the top right, the first button in that control panel for actions (looks like a Play button). That will show the complete action.

BTW Pause is a command to pause the playhead on the slide on runtime.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 01, 2016 Jun 01, 2016

Yes, I knew about the pause -- was just grasping for straws.

THIS WORKED BEAUTIFULLY! Makes sense. Don't know why I didn't think of that. Thank you so very much, Lilybiri. You're response was incredibly fast. Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 01, 2016 Jun 01, 2016
LATEST

You're welcome!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources