This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
Step 2: Using a derived variable to calculate an appropriate voucher code
You can make the questionnaire display a different offer depending on the size of the group. Create a derived variable which works out which discount to give according to the number of people in the group.
- Click
on the Snap toolbar to display the Variables window. - Click
on the Variables window toolbar to add a new variable. - Specify the Variable details:
Name: Discount
Label: Percent Discount
Type: Derived (the variable will derive its data from the variable that you have just created,)
Response: Single (the data will be coded into bands).
- Double click in the first code label and enter . This is the discount for less than ten people. It will never be seen in the questionnaire.

- Press [Tab] to move to the column. Enter .
- Press [Tab] to move to the next field and enter. Then enter as the . Since the codes are checked in order, a value less than ten will already have been coded.
- Press [Tab] to move to the next code. Enteras the and as the .
- Press [Tab] to move to the next code. Enteras the and as the .
- Press [Tab] to move to the next code. Enteras the and as the . This catches all numbers above 39.
- Click
to save the coded variable.