\[ $a x + $b y = c \]
\{ $has_solution->menu() \} # $has_solution is a PopUp
END_TEXT Context->normalStrings;
ANS( $has_solution->cmp() );
if ( $part >= 2 ) {
Context->texStrings;
BEGIN_TEXT
Good! What is one possible solution?
$PAR
\(x\equiv\) \{ ans_rule(5) \}
END_TEXT
Context->normalStrings;
# and so forth
- I have no guard to print the introduction and its answer field for the first part; i.e., no if ($part == 1), and
- I have if ($part >= 2) rather than the documentation’s if ($part == 2) because there’s a third part, too, and I wanted the text in part 2 to stick around there, as well.
I want to make sure this is the desired behavior. It took me a couple of hours to figure out what was going on, so I’d be happy to add a note to the Wiki for the other rare birds like myself who try to do something like this. If this is not the desired behavior, but rather a bug, then of course I’d much prefer to change the problems now so that I do not have to worry about surprises in the future.