[system] / trunk / pg / macros / contextTF.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/contextTF.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5551 Revision 5555
5=head1 DESCRIPTION 5=head1 DESCRIPTION
6 6
7Implements contexts for string-valued answers especially 7Implements contexts for string-valued answers especially
8for matching problems (where you match against T and F). 8for matching problems (where you match against T and F).
9 9
10 Context("TF"); 10 Context("TF");
11 11
12You can add new strings to the context as needed (or remove old ones) 12You can add new strings to the context as needed (or remove old ones)
13via the Context()->strings->add() and Context()-strings->remove() 13via the Context()->strings->add() and Context()-strings->remove()
14methods. 14methods.
15 15
16Use: 16Use:
17 17
18 ANS(string_cmp("T","F")); 18 ANS(string_cmp("T","F"));
19 19
20when there are two answers, the first being "T" and the second being "F". 20when there are two answers, the first being "T" and the second being "F".
21 21
22=cut 22=cut
23 23

Legend:
Removed from v.5551  
changed lines
  Added in v.5555

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9