
|
|
How do I have hints show up after more than 1 try? |
The following problem code displays the hint for all tries greater than 1:
<problem >
<numericalresponse answer="5" >
<textline />
<hintgroup >
<hintpart on="default" >
<script type="loncapa/perl" >
$tries=&EXT("user.resource.resource.$external::part.tries");
</script >
<block condition="$tries > 1">
<startouttext />This is the hint text<endouttext />
</block >
</hintpart >
</hintgroup >
</numericalresponse >
</problem > | |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||||