Skip to main content
Participant
November 18, 2015
Answered

increment count and execute and action

  • November 18, 2015
  • 2 replies
  • 2568 views

I need a button to increment a count and then run a conditional. Is there any way to do this?

    This topic has been closed for replies.
    Correct answer RodWard

    You need to use Conditional Advanced Actions in this case.  You can have an initial decision block that increments the counter variable followed by another decision block that checks the values of all other variables involved and then decides whether or not to show the Next button.

    Conditional Actions and Decision Blocks are all explained in pages you can reach from that link I gave you above.  It's also in the e-book with example CPTX files.

    2 replies

    Lilybiri
    Legend
    November 18, 2015

    What is the exact goal? You have to explain better. On my blog there are quite a lot of examples where a counter is used and based on its value a condition is triggered.

    nrporterAuthor
    Participant
    November 18, 2015

    I am creating a drag and drop game that once all items have been placed will allow the user to continue. I have the drag and drop game part working. Trying to get the next button to display after each item has been placed. I have been trying to have each item increment their variable from 0 to 1 and then check their status. Problem with this method is I need it to increment before checking the status of all variables. If there is a better way I am all ears. Thanks in advance.

    RodWard
    Community Expert
    RodWardCommunity ExpertCorrect answer
    Community Expert
    November 19, 2015

    You need to use Conditional Advanced Actions in this case.  You can have an initial decision block that increments the counter variable followed by another decision block that checks the values of all other variables involved and then decides whether or not to show the Next button.

    Conditional Actions and Decision Blocks are all explained in pages you can reach from that link I gave you above.  It's also in the e-book with example CPTX files.

    RodWard
    Community Expert
    Community Expert
    November 18, 2015

    Yes.  Create a user variable to hold the counter number.  Use a button to execute an Increment action each time it is clicked.  If you don't have Captivate 9 where you can disable continue on the button click, use a Standard Action to Increment.

    If you don't understand any of this, start reading here:

    Master the Art of Captivate's Advanced Actions | Infosemantics Pty Ltd