[LON-CAPA-users] More elegant conditional text?
Thu, 07 Feb 2008 16:36:59 -0700
Hello master problem coders,
I'm wondering if there's a more elegant way to do something like the
A bunch of text
<block condition="$smallChoice == 1">
<block condition="$smallChoice == 2">
What I'd like to do is more like this:
A bunch of text $array[$smallChoice] More text
The difficulty for me is the math tags. I haven't found the magic
incantation to embed the math tags in perl variables such that it
actually gets passed through the parser before being displayed.
I also explored randomlist, but it appears as though that is pretty much
limited to choosing between different <part> or <response> tags, rather
than simple text.
Can someone enlighten me?
Dr. Todd Ruskell
Senior Lecturer, Department of Physics Office: Meyer Hall 326
Colorado School of Mines Phone: 303-384-2080
1523 Illinois Street Fax: 303-273-3919
Golden, CO 80401