<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Question</LimeSurveyDocType>
 <DBVersion>258</DBVersion>
 <languages>
  <language>en</language>
 </languages>
 <questions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>question</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>help</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
   <fieldname>relevance</fieldname>
   <fieldname>modulename</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[683]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[645629]]></sid>
    <gid><![CDATA[40]]></gid>
    <type><![CDATA[X]]></type>
    <title><![CDATA[qTotal]]></title>
    <question><![CDATA[<p>So the total scores of all three  is</p>

<p>{q1Score} +</p>

<p>{q2Score} +</p>

<p>{q3Score}</p>

<p>= (my different scenarios to get the total score) :</p>

<p>{sum(q1Score, q2Score, q3Score)}    ------  scenario 1 ...  but this gives nothing and keeps 0 all time<br />
<br />
{sum(!is_empty(q1Score), !is_empty(q2Score), !is_empty(q3Score))} ..... scenario 2 .... but this gives the number 3 all times regardless of the three scores.<br />
<br />
{sum((q1Score), (q2Score), (q3Score))}   ...... scenario 3 ....  this is giving as above</p>
]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[34]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
  </rows>
 </questions>
</document>
