Welcome to the LimeSurvey Community Forum

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

Relevance condition based on summed questionnaire score

  • gorp
  • gorp's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 1 week ago #152540 by gorp
Hi
I want to sum the score of a questionnaire and then based on this score show different question groups after that...

I have two questions using List (Radio): code 1 = tiredness and code 2 = down. Each question have answers coded from 0-3.

Depending on the summed score on these two question I would like to show different question groups. If the summed score is "equal or less than than 4" show QuestionGroup1, if "equal or more than 5" show QuestionGroup2.


So in the Relevance box for QuestionGroup1 I wrote (( tiredness + down <=4))
And in the Relevance box for QuestionGroup2 I wrote ((tiredness + down >=4))

This works for "equal or more than"; but not for "equal or less than". (Then the screen just gets empty...)

Any help is much appreciated.
Thanks
Gorp
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 week ago - 7 years 1 week ago #152564 by tpartner
Try:
Code:
sum(tiredness, down) <= 4
 
sum(tiredness, down) >= 4

manual.limesurvey.org/Expression_Manager#Access_to_Functions

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 1 week ago by tpartner.
The following user(s) said Thank You: gorp
The topic has been locked.
  • gorp
  • gorp's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 1 week ago #152585 by gorp
Thank you: it works perfectly fine now :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose