Subversion Repositories wimsdev

Rev

Rev 5513 | Rev 5947 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5513 Rev 5903
Line 11... Line 11...
11
\feedback{CONDITION}{MESSAGE}
11
\feedback{CONDITION}{MESSAGE}
12
</pre>
12
</pre>
13
The line can be put into the field of parameters (under guided mode) or
13
The line can be put into the field of parameters (under guided mode) or
14
anywhere in the source (under raw mode).
14
anywhere in the source (under raw mode).
15
<p>
15
<p>
16
When <tt>CONDITION</tt> is met,
16
When <span class="tt">CONDITION</span> is met,
17
<tt>MESSAGE</tt> will be shown to the user in the result page. Values of
17
<span class="tt">MESSAGE</span> will be shown to the user in the result page. Values of
18
user replies can be put into both via the variables <tt class="wims_code_variable">\reply1</tt>,
18
user replies can be put into both via the variables <span class="tt wims_code_variable">\reply1</span>,
19
<tt class="wims_code_variable">\reply2</tt>,... (for freestyle replies), <tt class="wims_code_variable">\choice1</tt>,
19
<span class="tt wims_code_variable">\reply2</span>,... (for freestyle replies), <span class="tt wims_code_variable">\choice1</span>,
20
<tt class="wims_code_variable">\choice2</tt>,... (for multiple choices). The order in the variables
20
<span class="tt wims_code_variable">\choice2</span>,... (for multiple choices). The order in the variables
21
is the order of their appearance in the source (or in the form under the
21
is the order of their appearance in the source (or in the form under the
22
guided mode).
22
guided mode).
23
<p>
23
<p>
24
<tt>MESSAGE</tt> is a free text, accepting embedded html tags and
24
<span class="tt">MESSAGE</span> is a free text, accepting embedded html tags and
25
mathematical symbols.
25
mathematical symbols.
26
 
26
 
27
<p>
27
<p>
28
One can use also the variables <tt class="wims_code_variable">\sc_reply1</tt>, <tt class="wims_code_variable">\sc_reply2</tt>,
28
One can use also the variables <span class="tt wims_code_variable">\sc_reply1</span>, <span class="tt wims_code_variable">\sc_reply2</span>,
29
... which are equal to  1 in case of good user reply, 0 in case of false
29
... which are equal to  1 in case of good user reply, 0 in case of false
30
user reply and 0.5 in case of good reply up to numerical precision. This variable
30
user reply and 0.5 in case of good reply up to numerical precision. This variable
31
does not take care of conditions and is empty in the case where the
31
does not take care of conditions and is empty in the case where the
32
answer is analyzed only with conditions.
32
answer is analyzed only with conditions.
33
 
33
 
Line 49... Line 49...
49
$table_tr<td><tt class="wims_code_words">3 isitemof \reply1
49
$table_tr<td><tt class="wims_code_words">3 isitemof \reply1
50
  <td>the first reply, of type "set" or "vector", contains a component "3".
50
  <td>the first reply, of type "set" or "vector", contains a component "3".
51
 
51
 
52
$table_end
52
$table_end
53
<p>
53
<p>
54
<b>Known-bug</b>. You should avoid mixing <tt class="wims_code_variable">\reply</tt> and
54
<b>Known-bug</b>. You should avoid mixing <span class="tt wims_code_variable">\reply</span> and
55
<tt class="wims_code_variable">\choice</tt> within one same condition. Otherwise the result will be
55
<span class="tt wims_code_variable">\choice</span> within one same condition. Otherwise the result will be
56
unpredictable.
56
unpredictable.
57
 
57