Variables and Tokens

Variables and tokens are used to customize scripts based on respondents' answers. Variables and tokens enable you to replace generic values with values that are specific to the respondent. If you choose to use variables and tokens, you must use both of them. You cannot use variables without tokens, or tokens without variables.

You use the Variables program (P90CF080) to create variables and the Tokens program (P90CF070) to create tokens. The system updates these tables when you create variables and tokens:

  • F90CF080

  • F90CF070

If you choose to use variables and tokens, you must first create a variable. For example, you might choose to create the variable Favorite Color. You then create a token, which you might also name Favorite Color. You then associate the variable with the token.

After you have created the variable and token, you can then use them when creating questions. For example, you can associate the Favorite Color variable with the question: What is your favorite color? The answer that the respondent gives is then considered the value of the variable when the script is run. You can then use the Favorite Color token in subsequent questions to personalize the script for the respondent. For example, you might create the next question in the script as follows, using the Favorite Color token:

Would you be interested in purchasing {Favorite Color} widgets?

When a user runs the script, the token in the preceding question is replaced with the value that is associated with the Favorite Color variable. For example, if the respondent chose red as the favorite color, the preceding question appears as follows when the script is run:

Would you be interested in purchasing red widgets?