We have a number of problems where there are variables like $units defined.
They're written in PGML, but they have stopped working with WeBWorK 2.19.
In most cases I can simply manually write in the units, but there are some places where the units depend on context.
For example, there is a problem about postal fees where the unit depends on the quantity. We have code like:
if ($h <= 20) {
$units3 = "\(\text{in}^3\)";
$units = "\(\text{in}\)";
}
elsif ($h <= 40) {
$units3 = "\(\text{cm}^3\)";
$units = "\(\text{cm}\)";
}
else {
$units3 = "\(\text{mm}^3\)";
$units = "\(\text{mm}\)";
}
Is there a way to make this work in 2.19? I have already tried changing the delimiters to [`...`].