Summary

This article defines the instruction appendVar.

Table of Contents


Instruction appendVar

Overview

Appends the content of a (cell) variable (typically defined with setVar) to either a question value or an input value.

Question Id

You can specify a question path here when you want to append the variable content to the question value.

Value

Needs to be the name of a (cell) variable.

Input value

This is used as the input, when no question (path) is specified.

Examples

The following example takes the site ID found on a form in the casebook, assigns it to a variable and then outputs the string ‘Site: ‘ before appending the site ID to it to create a very readable string value. You can also append variables to variables or other data from the casebook if necessary.

Form Type IdQuestion IdInstructionValueColumn NumberColumn TitleData Type
#sc.siteid
$>
$>
$>
qst
$>setVar
$>const
$>appendVar
$>sid
$>’Site: ‘
$>sid
7SITENAMEString



Need more help?

Please visit the Fountayn Contact Information page.