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

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

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

Revision 3323 Revision 3324
2648} 2648}
2649 2649
2650#added 6/28/2000 by David Etlinger 2650#added 6/28/2000 by David Etlinger
2651#exactly the same as strict_str_cmp, 2651#exactly the same as strict_str_cmp,
2652#but more intuitive to the user 2652#but more intuitive to the user
2653
2654# check that answer is really a string and not an array
2655# also use ordinary string compare
2653sub radio_cmp { 2656sub radio_cmp {
2654 strict_str_cmp( @_ ); 2657 #strict_str_cmp( @_ );
2658 my $response = shift; # there should be only one item.
2659 warn "Multiple choices -- this should not happen with radio buttons. Have
2660 you used checkboxes perhaps?" if ref($response);
2661 str_cmp($response);
2655} 2662}
2656 2663
2657########################################################################## 2664##########################################################################
2658########################################################################## 2665##########################################################################
2659## Text and e-mail routines 2666## Text and e-mail routines

Legend:
Removed from v.3323  
changed lines
  Added in v.3324

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9