$p = Formula("should do the trick.your formula here"); ... ANS($p->cmp(checker => sub { my ($correct,$student) = @_; return $correct == $student || $correct == -$student; });

Davide

This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day

$p = Formula("should do the trick.your formula here"); ... ANS($p->cmp(checker => sub { my ($correct,$student) = @_; return $correct == $student || $correct == -$student; });

Davide