Comparing Dates in a List Attribute

You can compare dates in a list attribute. For example, comparing a status date, its various list items, and across dimensions. If you had a list attribute with list items of Status.Red, Status.Yellow, and Status.Green, and if you wanted to see their related dates as they exist in the Actual and Plan dimensions, you could use the MathML piecewise element to display the attribute values. For example:
<?xml version="1.0" encoding="utf-16"?>
<Calculation>
   <Expression>
      <math xmlns:mathml="http://www.w3.org/1998/Math/MathML">
         <lambda>
            <bvar>
               <ci>x</ci>
               <ci>y</ci>
            </bvar>
            <piecewise>
               <piece>
                  <ci>z1</ci>
                  <apply>
                     <gt></gt>
                     <apply>
                        <minus></minus>
                        <ci>x</ci>
                        <ci>y</ci>
                     </apply>
                     <cn>30</cn>
                  </apply>
               </piece>
               <piece>
                  <ci>z2</ci>
                  <apply>
                     <gt></gt>
                     <apply>
                        <minus></minus>
                        <ci>x</ci>
                        <ci>y</ci>
                     </apply>
                     <cn>0</cn>
                  </apply>
               </piece>
               <otherwise>
                  <ci>z3</ci>
               </otherwise>
            </piecewise>
         </lambda>
      </math>
   </Expression>
   <RHSVariable name="StartMS.Actual" identifier="x"></RHSVariable>
   <RHSVariable name="StartMS.Plan" identifier="y"></RHSVariable>
   <RHSVariable name="%ListItem%Status.Red%" identifier="z1"></RHSVariable>
   <RHSVariable name="%ListItem%Status.Yellow%" identifier="z2"></RHSVariable>
   <RHSVariable name="%ListItem%Status.Green%" identifier="z3"></RHSVariable>
</Calculation>