Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Having 4 different scorings at the end?!

More
8 years 6 months ago #149096 by holch
Have a look at the manual: www.limesurvey.org/manual/Expression_Manager
Try &&

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
8 years 6 months ago #149142 by tpartner
You need to use the variables before all operators. So something like this:

Code:
{if(sum(Q1, Q2, Q3, Q4, Q5, Q6. Q7, Q8, Q9, Q10) >= 5 AND sum(Q1, Q2, Q3, Q4, Q5, Q6. Q7, Q8, Q9, Q10) <= 9, 'Something if true.', 'Something if untrue.')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 5 months ago #149744 by Reveb
Hey, I'm sorry for the late respond,

I don't know for sure cause im still learning code and limesurvey but you migth be able to give this a change:

{if(Questioncode => 5 && Questioncode =< 9, "Your score is ....", " ")}

Reveb
The topic has been locked.
More
8 years 5 months ago #149756 by tpartner
Sorry, I don't understand the question. I thought I already gave an example for that.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 5 months ago #149758 by Reveb
Oh, sorry didn't see any answers i just checked my mail and got a message just showing his question,

sorry for the inconvenience.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose