Skip to main content
Participating Frequently
December 2, 2015
Question

Variables

  • December 2, 2015
  • 3 replies
  • 593 views

Hello, i am using variables to make a condition.

A user will navigate through three lessons. Each time they finish a lesson. I have three variables that incriment by one each.

The condition I made in the advance action is that is all three variables are equal or greater to one, then a button will show.

The variables count up to one a piece, but the button never shows. Does anyone know what I'm doing wrong?

I've allowed the variables to show to test it. The button should be at the bottom, but nothing. Can someone help?

    This topic has been closed for replies.

    3 replies

    Participating Frequently
    December 3, 2015

    Hi all, so I found a solution. For some reason, the conditions were all correct. The button did not show up when I went back to the slide. However, I put a dummy slide (just a slide with nothing on it, that goes in and out quick) in front of the main menu slide, and pointed all end of lesson actions to the dummy slide rather than the main menu. So after a lesson, the user would go to the dummy slide first, then the main menu. It functioned properly. Don't know why this is, but this works for me. Thanks for all the advice.

    Maybe some can find out why I needed a dummy slide rather than it popping up on the main menu slide? Was it a teach glitch?

    Lilybiri
    Legend
    December 3, 2015

    That is not a normal behavior at all. But on your screenshot I see that the button is 'inactive'. Can you check its Timing Properties: where is the pausing point set, it looks like it is very close to the start of the slide. The screenshot is too small to see exactly the pause. Even when the button is set to Invisible, there should be an active region.

    To execute the On Enter action you have to 're'-enter the slide indeed.  As I told before, you don't really need that action, you can trigger it from the button that jumps from the menu slide if you have two decisions in that (conditional) action. But you have to move the pausing point, it has no sense to pause at the first frame.

    1. Always = mimicked standard action
      IF 1 is equal to 1
          Jump to ....
          Increment var
          Show checkmark
    2. CheckVars
      IF var1 is equal or greater than 1 AND
          var2 is equal or greater than 1  AND
           ......

            Show Next button

    In Captivate 9 I would use states for the checkmarks.

    CONeill
    Inspiring
    December 3, 2015

    Hi Jeff,

    I'm assuming you've got the conditional action set to go 'On enter' of the main slide?

    Also, it might be worth trying assign IPPandIHPClass as 1.

    I've had trouble using the increment function in the past, in that it doesn't seem to treat numbers as numbers. For example if you repeat increment by 1 three times, you'll get '111' rather than '3'.

    We'll get to the bottom of it!

    Mike

    Lilybiri
    Legend
    December 3, 2015

    Mike, please, I know that I'm repeating my question: when you post an answer, tell which version are you using? What you are telling here about the increment bug happened only in 8.0 before the patch was released, but is no longer a problem at all. The Increment command works perfectly in 8.0.1 and 9. We do not want to mislead Captivate users, don't we? Maybe the incremented counter will be shown: a user can visit something several times, incrementing allows to see and show how many times it was visited.


    The issue here is that I suspect the advanced actions are created but not applied to an event.  Both actions could be combined in one conditional advanced action triggered by the 'Jump' button: first decision being a mimicked standard action, the second decision the condition itself (sequence important). Since the Jump command is the first, the user will not be aware of the Next button appearing after the last variable has been incremented.  Or the standard action can be triggered by the Jump button and the conditional action by the On Enter event.

    The last time I showed this use case on my blog was here: Captivate 8 - First Adventures - Captivate blog

    For Captivate 9 I have another work flow, using states.

    RodWard
    Community Expert
    Community Expert
    December 3, 2015

    @Mike:

    Re your issue with the Increment action.  I've never seen that behaviour before where incrementing three times caused the value to be a number such as 111.

    I just tested this in Cp9 and it doesn't do that.

    Are you sure you're not thinking of the Expression action?  This can sometimes treat a number as a string and concatenate the string (thereby giving you 111).

    Lilybiri
    Legend
    December 2, 2015

    It is not a screenshot of the slide that is needed, but of the advanced action. Also explain which events are triggering which action?

    This use case has been treated so many times on this forum and in blogs. It is pretty simple, but can be set up in many ways.

    Participating Frequently
    December 2, 2015

    Here is an example of one of the advanced actions that leads up to the condition. Its the same for all 3, the only difference is in the show section, where there is a name for each completion of a class.

    The second screenshot is the conditional action. All variables start at  zero.

    If all three get incremented by 1, the condition here is to show a button named "Let's Finish this course" As you can see from my project pic, all three variables have a 1. Why is the button not showing?

      

    Lilybiri
    Legend
    December 2, 2015

    Repeat my question: " which events are triggering which action?"