Functional description
Difficulty level:
Questions variables
This section provides a description of the available variables in the questions template.
Note: To use question/answer variables, knowledge of how detail rows work is required. See an example at the bottom of this article.
Start code: <!-- BEGIN questions -->
End code: <!-- END questions -->
Variable | Description | Example |
---|---|---|
{S_QUESTIONS} | A control variable to indicate whether the questions table is populated | True / False |
{questions.QUESTION} | The question | What is the name of the birthday person? |
{questions.ANSWER} | The provided answer | Anton |
An example table with question rows:
<table align="center" border="0" cellpadding="5" cellspacing="1" style="padding:5px; width:100%"> <tbody> <tr> <td>Question</td> <td>Answer</td> </tr> <!-- BEGIN questions --> <tr> <td>{questions.QUESTION}</td> <td>{questions.ANSWER}</td> </tr> <!-- END questions --> </tbody> </table>