--- loncom/html/adm/help/tex/BridgeTask_EditModeVariable.tex 2007/05/30 15:35:14 1.1
+++ loncom/html/adm/help/tex/BridgeTask_EditModeVariable.tex 2016/08/20 16:06:50 1.2
@@ -10,14 +10,14 @@ To create difference versions of Bridge
To create a variable:
\begin{enumerate}
-\item Choose "Setup ..." in the insert pull-down menu (circled 1 in figure). \item Press the Submit Changes and Edit just above the work space.
-\item A new box should appear with the label "Setup ...". In this box, fill out the id box (circled 3) with any text that is unique to unique to the document. This id is the name of the variable and will be used when creating the values for the variable.
-\item The setup box has an insert pull-down menu next to the label (circled 2), select "Specific Question Instance" in this pull down menu, then again press the Submit Changes and Edit button.
-\item This creates one single instance of a set of possible values. For each instance created, a new "Specific Question Instance" must be created.
-\item Right now a box should appear inside the "Setup... " box with the label "Specific Question Instance". Insert a unique id for that instance which can be any unique text (circled 4). This id is the instance name and is used as one of the property of the variable.
-\item In the question instance block, select "Information for the Instance" in the insert pull down (circled 5). Again press submit button.
+\item Choose ``Setup ...'' in the insert pull-down menu (circled 1 in figure). \item Press the Submit Changes and Edit just above the work space.
+\item A new box should appear with the label ``Setup ...''. In this box, fill out the id box (circled 3) with any text that is unique to unique to the document. This id is the name of the variable and will be used when creating the values for the variable.
+\item The setup box has an insert pull-down menu next to the label (circled 2), select ``Specific Question Instance'' in this pull down menu, then again press the Submit Changes and Edit button.
+\item This creates one single instance of a set of possible values. For each instance created, a new ``Specific Question Instance'' must be created.
+\item Right now a box should appear inside the ``Setup... '' box with the label ``Specific Question Instance''. Insert a unique id for that instance which can be any unique text (circled 4). This id is the instance name and is used as one of the property of the variable.
+\item In the question instance block, select ``Information for the Instance'' in the insert pull down (circled 5). Again press submit button.
\item Add a new script (circled 6) in the insert pull down. A new text block should appear.
-\item In this text box, a perl script will be created (circled 7). A set of parameters for this variable is added. The syntax to set the parameter of a variable is '\$variableName \{fieldname\} = "fieldValue"'. The variable name is taken from the id field of the Setup block, thefield name is the name of the parameter the author sets, and the fieldValue is simply the value of the field. The first parameter that must be set is the instance field, with the value being an identifier of the instance (which is the id of the specific question instance block).
+\item In this text box, a perl script will be created (circled 7). A set of parameters for this variable is added. The syntax to set the parameter of a variable is `\$variableName \{fieldname\} = ``fieldValue'''. The variable name is taken from the id field of the Setup block, thefield name is the name of the parameter the author sets, and the fieldValue is simply the value of the field. The first parameter that must be set is the instance field, with the value being an identifier of the instance (which is the id of the specific question instance block).
\end{enumerate}
The example below shows two instances of this script for the variable entitySubject with two instances, 'instanceHarry' and 'instanceBetty'.
@@ -36,7 +36,7 @@ The second instance (instanceBetty) is:
$entitySubject{place} = "park";
\end{verbatim}
-The example above describes a variable question. It has two different possible values for the entity "subject", Harry and zoo or Betty and park. Variables can be placed inside the questions by using the variable name and field name.
+The example above describes a variable question. It has two different possible values for the entity ``subject'', Harry and zoo or Betty and park. Variables can be placed inside the questions by using the variable name and field name.
The example of the usage of this variable inside the question is this text:
This is a test question. \$entitySubject\{personname\}