[Lon-capa-users] numericalhint
Guy Albertelli II
lon-capa-users@mail.lon-capa.org
Sun, 10 Feb 2002 12:33:53 -0500 (EST)
Hi Ray,
I hav rewritten this to be something that should work.
(The most important change was changing the name="tolTKwrong" to name="tol")
*IMPORTANT* the name field is the _internal_name_ used to identify
information, tolerances _must_ be stored with a name="tol", sigfigs
_must_ be stored with name="sig"
(Let me know if the variable default works, that might or might not.)
(It is might work in a non intuitave manner, I'd test with a fixed
tol, and then try the variable out)
<numericalresponse answer="$ans" unit="J/g/K" format="1E">
<responseparam name="tol" type="tolerance" description="Numerical Tolerance" default="$tolans" />
<responseparam name="sig" type="int_range,0-16" default="0,15" description="Significant Figures" />
<textline />
<hintgroup>
<numericalhint answer="$TKwrongans" unit="J/g/K" format="1E" name="TKwrong">
<responseparam name="tol" type="tolerance" description="tolerance on answer to trigger numerical hint" default="$tolTKwrongans" />
</numericalhint>
<hintpart on="TKwrong">
<startouttext />
The conditional hint text would go here.
<endouttext />
</hintpart>
<hintpart on="default">
<startouttext />
The general hint text goes here.
<endouttext />
</hintpart>
</hintgroup>
</numericalresponse>
--
albertel@msu.edu BM: n^20 t20 z20 qS
Guy Albertelli -7-9-8- O-
I'll take back my pinata, it's wasted on you. -TMBG