The parameters element contains settings that can be used to alter the behavior or mode of the script.
<parameters>
/ parametername1
/ parametername2
/ parametername3
</parameters>
parameters.name
parameters.parametername1
parameters.parametername2
parameters.parametername3
parameters.typename
None.
The parameters element is where a script's customizable settings are defined. For example, a script that enables administrators to change the total time of a test may define a "totaltesttime" parameter that can be set to the total number of milliseconds a test will run before ending. Users of the test can then adjust the time according to their needs simply by setting the parameter. Parameters can also be set by <a href="../elements/batch.htm">batch elements </a> in cases where a script is run as part of a batch.
The following defines and initializes 3 parameters controling the win and loss stakes for a gambling task, as well as the maximum amount that can be one.
<parameters>
/ rewardamount=10
/ penaltyamount=5
/ maxwinnings=500
</parameters>
The following defines a parameter that determines whether to show the respondent a performance feedback summary.
<parameters>
/ showfeedback=true
</parameters>