In this video tutorial, I show you how you can perform mathematical calculations inside your Adobe Captivate advanced actions using the expression command.
A colleague of mine asked about creating an advanced action that would calculate a person’s birthday if they were turning 21 today.
You would need to write an advanced action that uses the Expression command a number of times. For example, if you wanted to calculate the average age of five people who you typed in their ages on a previous slide you could write an advanced action like the following…
Expression _total_age = Text_Entry_Box_1 + Text_Entry_Box_2
Expression _total_age = _total_age + Text_Entry_Box_3
Expression _total_age = _total_age + Text_Entry_Box_4
Expression _total_age = _total_age + Text_Entry_Box_5
Expression _averagage_age = _total_age / 5
You must be logged in to post a comment.