Rev 17347 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17347 | Rev 17514 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | \if{condition}{if_content} |
66 | \if{condition}{if_content} |
67 | \if{condition}{if_content}{otherwise_content} |
67 | \if{condition}{if_content}{otherwise_content} |
68 | \ifval{condition}{if_content} |
68 | \ifval{condition}{if_content} |
69 | \ifval{condition}{if_content}{otherwise_content} |
69 | \ifval{condition}{if_content}{otherwise_content} |
70 | \for{var=n1 to n2}{loop_content} |
70 | \for{var=n1 to n2}{loop_content} |
71 | \while{condition}{loop_content} |
71 | \while{condition}{loop_content} (main environment only) |
72 | </pre> |
72 | </pre> |
73 | 73 | ||
74 | These commands can be used either within statement, hint, solution or |
74 | These commands can be used either within statement, hint, solution or |
75 | feedback, or in the main environment. In the latter case, the conditional |
75 | feedback, or in the main environment. In the latter case, the conditional |
76 | execution only affects parameter definitions. |
76 | execution only affects parameter definitions. |
Line 185... | Line 185... | ||
185 | On peut récupérer leur valeur à l'aide de la slib <span class="tt wims_code"> oef/env</span>. |
185 | On peut récupérer leur valeur à l'aide de la slib <span class="tt wims_code"> oef/env</span>. |
186 | <p> |
186 | <p> |
187 | La variable <span class="tt wims_code_variable">lang</span> peut être utilisée |
187 | La variable <span class="tt wims_code_variable">lang</span> peut être utilisée |
188 | pour l'internationalisation des modules. |
188 | pour l'internationalisation des modules. |
189 | </p><div> |
189 | </p><div> |
190 | La variable |
190 | La variable <span class="tt wims_code_variable">presentgood</span> permet de tenir compte, |
191 | dans la présentation des textes d'un exercice, de la valeur que l'utilisateur choisira |
191 | dans la présentation des textes d'un exercice, de la valeur que l'utilisateur choisira |
192 | pour le paramétrage "Afficher la bonne réponse" proposé dans l'introduction d'un module oef. |
192 | pour le paramétrage "Afficher la bonne réponse" proposé dans l'introduction d'un module oef. |
193 | Cette variable vaut 0 lorsque la bonne réponse ne doit pas être affichée et 1 sinon. |
193 | Cette variable vaut 0 lorsque la bonne réponse ne doit pas être affichée et 1 sinon. |
194 | 194 | ||
195 | Pour l'utiliser, écrire avant le <span class="tt wims_code_variable">\statement</span> |
195 | Pour l'utiliser, écrire avant le <span class="tt wims_code_variable">\statement</span> |