Subject: [LON-CAPA-dev] Map Conditons work

From: Guy Albertelli II <[email-masked]>
Date: Tue, 26 Oct 2004 11:26:10 -0400 (EDT)

Hi All,

I got a chance to get map conditions working over the weekend.

I have built maps that look at the completion status of problems and
the number of tries used in others to create something like what we
wanted to do for the CCLI proposal.

For instance this map works:

<map>
<param to="5" value="mainproblem" name="parameter_0_mapalias" type="string"></param>
<param to="7" value="2nd_problem" name="parameter_0_mapalias" type="string"></param>
<param to="10" value="3rd_problem" name="parameter_0_mapalias" type="string"></param>
<param to="13" value="4th_problem" name="parameter_0_mapalias" type="string"></param>
<param to="16" value="5th_problem" name="parameter_0_mapalias" type="string"></param>
<resource src="" id="1" type="start" title="Start"></resource>
<resource src="" id="2" type="finish" title="Finish"></resource>
<resource src="/res/annarbor/albertel/b_and_c/1.problem" id="5" title="1.problem"></resource>
<resource src="/res/annarbor/albertel/b_and_c/2.problem" id="7" title="2.problem"></resource>
<resource src="/res/annarbor/albertel/b_and_c/3.problem" id="10" title="3.problem"></resource>
<resource src="/res/annarbor/albertel/b_and_c/4.problem" id="13" title="4.problem"></resource>
<resource src="/res/annarbor/albertel/b_and_c/5.problem" id="16" title="5.problem"></resource>
<condition value="&EXT('user.resource.resource.0.tries','mainproblem')>1 && &EXT('user.resource.resource.0.tries','mainproblem') <3" id="58" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.tries','mainproblem') >2 && &EXT('user.resource.resource.0.tries','mainproblem') <4" id="59" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.tries','mainproblem')>4 " id="60" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.tries','mainproblem')<2 " id="61" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.tries','mainproblem')>3 && &EXT('user.resource.resource.0.tries','mainproblem') <5" id="62" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.awarded','mainproblem') eq 1`" id="63" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.awarded','5th_problem') eq 1 " id="64" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.awarded','2nd_problem') eq 1" id="65" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.awarded','3rd_problem') eq 1" id="66" type="stop"></condition>
<condition value="&EXT('user.resource.resource.0.solved','4th_problem') eq 1" id="67" type="stop"></condition>
<link to="5" index="1" from="1" condition="61"></link>
<link to="13" index="2" from="1" condition="62"></link>
<link to="10" index="3" from="1" condition="59"></link>
<link to="7" index="4" from="1" condition="58"></link>
<link to="16" index="5" from="1" condition="60"></link>
<link to="5" index="6" from="16" condition="64"></link>
<link to="5" index="7" from="7" condition="65"></link>
<link to="5" index="8" from="10" condition="66"></link>
<link to="5" index="9" from="13" condition="67"></link>
<link to="2" index="10" from="5" condition="63"></link>
</map>

-- 
[email-masked]  LON-CAPA Developer  0-7-3-2-