Highlighted

While loop only active on current slide?

Participant ,
May 08, 2018

Copy link to clipboard

Copied

If I write a while conditional action, does it only execute while I am on that particular slide?

So if I have a while 1==1, increment var, will it only increment my var while I am on the slide from which the action was triggered? And not continue to increment during the whole project? 

If so, why does it behave this way? While should be while the condition, not "until I leave this slide", no?

Thanks,

Lori

Views

60

Likes

Translate

Translate

Report

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

While loop only active on current slide?

Participant ,
May 08, 2018

Copy link to clipboard

Copied

If I write a while conditional action, does it only execute while I am on that particular slide?

So if I have a while 1==1, increment var, will it only increment my var while I am on the slide from which the action was triggered? And not continue to increment during the whole project? 

If so, why does it behave this way? While should be while the condition, not "until I leave this slide", no?

Thanks,

Lori

Views

61

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Lilybiri LATEST
Most Valuable Participant ,
May 08, 2018

Copy link to clipboard

Copied

Not sure if it 'should' behave as you seem to expect. If you have an animation on a slide, which you time to loop, it will not continue on the other slides. Can you give more details about what you want to achieve with that increment example? You have to be aware that the While loop cannot be stopped by a pause or a pausing point. If you have an interactive object on a slide, pausng the slide at 1,5sec, the incrementing will continue while the playhead is paused.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
Captivate User Guide
New Group