From the course: Captivate: Advanced Techniques

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Using conditional actions to affect object visibility

Using conditional actions to affect object visibility - Captivate Tutorial

From the course: Captivate: Advanced Techniques

Using conditional actions to affect object visibility

- In this lesson we're gonna use a different kind of Advanced Action, a conditional action to affect the visibility of things on the screen. Remember that a conditional action does something only if a certain condition is met. For instance, if you've eaten your dinner, then you get dessert, else you have to eat five more bites. We'll be working again in the CFL Wattage project. Here's our scenario. On Slide 2 the learner is asked which CFL bulb wattage is equivalent to a 100 watt incandescent bulb. 20 or 30? We're gonna a variable to store the user's answer. The correct answer, by the way, is 23. Then on the next screen, we'll test and see if the user selected 23, then display the Yes, 23 is correct message. We'll hide the Sorry, 20 is not correct message. If they chose 20, which is wrong, we're gonna hide the You are correct message and show Sorry, 20 is not correct. So we're going to start on Slide 2 where the user is asked to select which answer they think is right. To hold what…

Contents