Sorry for the consecutive thread, but I have follow up question(s),
I now get an error when I try to access this array in a for loop:
{{ for i in range(10, 0, -1) }}
{{ if player.round_number >= i }}
<tr>
<td><span style="color: rgb(95, 95, 95)">{{ i }}</span></td>
<td> </td>
<td><span style="color: rgb(95, 95, 95)">{{ r.i }}%</span></td>
<td> </td>
<td><span style="color: rgb(95, 95, 95)">{{ p.i }}</span></td>
</tr>
{{ endif }}
{{ endfor }}
Results in the following error:
Application error (500)UndefinedVariable: Cannot resolve the variable 'r.i' (line 129, in "r.i")
Is it not possible to access the array in a for loop?
On a related issue, 10 is the number of rounds in the experiment. If I try to replace the 10 in the expression "range(10, 0, -1)" with Constants.num_rounds, I get the following error:
TemplateSyntaxError: Unparsable argument 'Constants.num_rounds'. Arguments must be valid Python literals. (line 124, in "for")