--- loncom/html/adm/help/tex/Spreadsheet_Referencing_Parameters.tex 2006/08/08 17:47:27 1.3 +++ loncom/html/adm/help/tex/Spreadsheet_Referencing_Parameters.tex 2016/01/03 04:56:48 1.8 @@ -1,11 +1,17 @@ \label{Spreadsheet_Referencing_Parameters} -In the assessment-level spreadsheet, the parameters are available for -calculation in two ways. +Assessment parameter names are listed when viewing the assessment-level spreadsheet in the column label `Item.' In the assessment-level spreadsheet, the parameters are available for +calculation in three ways. -1. Reference the cell containing the parameter: \texttt{A7} +\begin{enumerate} +\item Reference the cell containing the parameter value: \texttt{A10} -2. Reference the parameter by name: \texttt{[parameter\_0\_weight]} +\item Reference the parameter value by string name in brackets: \texttt{[parameter\char`_0\char`_weight]} + +In each of these two cases, the value of the parameter will replace the +reference before the Perl code in the cell is executed. + +\item Use the \texttt{\&PARM()} function, e.g. \texttt{\&PARM(parameter\char`_0\char`_weight)}, this will get run as part of the perl + code evaluation. +\end{enumerate} -In each case, the value of the parameter will replace the reference before the -Perl code in the cell is executed.