Skip to main content
Known Participant
September 11, 2015
Question

Doubt regarding conditional action - Captivate 9

  • September 11, 2015
  • 1 reply
  • 846 views

Hello community, I've been working with Cp for a while but I'm not confident when the subject is variables and such.

Please take a look at this case:

I have a slide with 4 boxes, the user click each one of them to see a pop up with image and audio (all on the same slide), then he clicks

a X to close it (hide it) Also, when he clicks the X he's automatically giving a conditional action called 'completion_status' a value 1 .

Back to the slide, the box he clicked is marked with and OK, meaning he passed that content and should click the other boxes.

I then created a conditional action stating that when all four completion_status are signed with the value 1, another popup will happen,

this time with an congrats audio and a button to move to the next slide. My doubt is: How should I trigger that last conditional action?

I tought atributing to every X closing button, but it's not possible to put and advanced action inside another, right?

Maybe this is a dumb and easy thing, so please don't mind my rookieness

Thanks!

This topic has been closed for replies.

1 reply

Lilybiri
Legend
September 11, 2015

With CP9 there are several ways to do this. Apparently you didn't look at the 'states' at all like I did with lightboxes in this movie:

Playing with Captivate 9 - Captivate blog

In the second part, when the text bubbles have appeared that are also shape buttons, each shape button will open a lightbox and a close button.

For your conditional action, you'll need to use the success event of the close button, since that is the moment where you want to check if all variables have been toggled to 1. I would use a shared action, conditional, something like this:

First decision 'Always'

  IF 1 is equal to 1

        Assign v_one with 1                  v_one is the variables assocated with this button (you call it a 'box')

        Hide .....                                    the group with objects and audio that you want to close


Second decision "CheckDone"

       IF v_one is equal to 1 AND

           v_two is equal to 1 AND

           v_three is equal to 1 AND

           v_four is equal to 1

              Show..........................          whatever you want to show when everything has been visited.

Known Participant
September 15, 2015

Sorry Lilybiri, I didnt quite understand your instructions... English is not my native language

IF 1 is equal to 1

        Assign v_one with 1                  v_one is the variables assocated with this button (you call it a 'box')

        Hide .....                                    the group with objects and audio that you want to close

What do you mean by:IF 1 is equal to 1?

I have 4 buttons, button_1 sets completion_status_1 to 1, button_2 sets completion_status_2 to 1 and so on...

I then created a conditional action like this:

If all the completion status are 1, show(mostrar) those 2 objects.

The thing is when I click all buttons and all completion status are 1, nothing happens. How can trigger it?

sorry for my difficulty to understand

Captiv8r
Legend
September 16, 2015

Hi there

Perhaps you have a conditional action where you want something performed each time without being conditional. Maybe it's a second or third decision block.

So block 1 might say if this variable = 1 to this. Else, to the other thing.

But as part of the same condition, you want some action performed regardless. Maybe you need a counter set to keep track of the number of times the action was performed. In that case, you need to set up a situation where only one part of the condition would ever be reached and the else part would never be reached.

That's where If 1=1 comes in handy. It will always evaluate as true. It will never evaluate as false.

Hope this helps... Rick