- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
i'm actually using the latests version ( Version 5.2.5+211207 ) and when i look at the options, especially in the "Logic" section nor in any other section, i don't see the "relevance equation" shown by @DenisChenu in his answer...Here without the IF (knowing that a TRUE term is evaluated as "1")
{sum(
intval(Q1_SQ001.NAOK=="Y") *5,
intval(Q1_SQ002.NAOK=="Y") *1,
intval(Q1_SQ003.NAOK=="Y") *7,
intval(Q1_SQ004.NAOK=="Y") *22
)}
with a question of type "Equation" (and hidden), it works perfectly and i'm able to retrieve its value in the End Message.So use ExpressionScript, calculate your final value in a question of type "equation" like
Qx = single questions
Mx = multiple questions
{sum(if(Q1.NAOK==2,1,0),if(M1_SQ001.NAOK=="Y",5,0),if(M1_SQ004.NAOK=="Y",5,0),if(Q3.NAOK==7,2,0))}