Skip to main content
Known Participant
April 13, 2011
Question

Custom variables

  • April 13, 2011
  • 1 reply
  • 588 views

Hi guys,

I am trying to setup more complex variable. Not sure how to do this

Here is what I am trying to do, I would like to do some math calculation. For example: 10/5 = 2

In captivate 5, you can go to "Variables" and create variables.

Say var1 = 10 and var2 = 5.

How do you set up another variable that do the math calcuation? (ie. var_result = var1/var2)

and then how do apply that var_result on stage?

Also is it possible to do that with system variables. For example using quiz system variables to do the calculation.

Thank you very much in advance.

This topic has been closed for replies.

1 reply

CSE-AdobeAuthor
Known Participant
April 13, 2011

I think I might found it.

In Captivate 5, set up all your variables. For example, var1 = 5, var2 = 3, and var_result leave it blank.

Then go to Advance actions.

-Create new "Standard Actions"

-When setting the actions, select "Expression".

Now you can do simple math calcuation.

This actually also apply to system variables whenever it is applicable.

Hope this helps.

Cheers

Lilybiri
Legend
April 13, 2011

Hello,

Glad you found it. In this blog postings I did some calculations, perhaps they could help:

Quiz showing elapsed time

Creating a Game Results Board

Lilybiri