🔔Black Friday Super Sale! 40% Off on All Products. Limited time offer!⏰

Understanding Variables in ActivePresenter 7

by | Feb 19, 2018

Last Updated On: November 27, 2018

Without a single line of code, you can create variables and use them to collect and store information such as learner names and scores, then retrieve it throughout the course. Variables are also helpful to add conditional interactivity to your course with conditional actions. Grab an overview of variables and the basic steps to create variables with this tutorial.

System and User Variables

ActivePresenter provides three types of variables: true/false, text, and number. All come in two categories: system and user-defined.

  • System variables come predefined. For example, the apQuizScore variable returns the total score a learner gets. Find system variables in the Home tab > Variables > System tab. For a list of all system variables, take a look at the PDF User Manual.
  • Meanwhile, user variables are project-specific variables created by users. You are free to create, modify, and delete these variables. Details about creating variables are available in the latter part of this tutorial.

Many system variables are available in ActivePresenter 7.

Types of Variables

True/False

True/false variables (also called “boolean variables”) have only two possible values: true or false. This true or false nature makes these variables a great way to keep track of things that are right or wrong, on/off, clicked/not clicked, visited/not visited, and the like. True/false variables enable you to make decisions, and thus have a better control over your flow. For example, you can use true/false variables for slide completion, that is, to track if learners visit a slide and interact with its content.

Take a look at Using True/False Variables to Control the Next Button.

Text

Text variables (also called “string variables”) hold text-based values (strings). These variables help store information such as names, passwords, and years. For example, use text variables to remember the learner name and then display it throughout the course to personalize your training.

Take a look at Using Text Variables to Display Username.

Number

Number variables (also called “integer variables”) hold numeric values. They store numeric information such as scores, number of attempts/clicks, question counting, current slide number/index, and any other numeric values. For example, use number variables for some simple calculation functions such as addition and subtraction. Or, use these variables to create a visible counter that counts either up or down to track the number of clicks.

Take a look at Using Number Variables to Count the Number of Clicks.

Creating Variables

It’s quick and easy to create variables in ActivePresenter 7.

Step 1: In the Home tab, click Variables. The Variables dialog appears.

Step 2: In the User tab of the dialog, click Add in the bottom toolbar. Then, specify the variable name, type, initial value, and description (if any) in the pop-up dialog.

Create variables to collect and store information.

Step 3: Click Add&Close to save the new variable and close the pop-up dialog. Otherwise, click Add&Continue to save the new variable and continue creating other variables.

Create variables to collect and store information.

After creating variables, you can do either of the following tasks to make use of them:

  • Referencing variable values to display dynamic information throughout the course.
  • Use actions to adjust variable values.
  • Create conditional actions that involve variables.

For details, see Adding and Using Variables.

That’s some basic understanding of variables in ActivePresenter 7. Many useful tutorials about variables will be available in the near future, so stay tuned!