- Posts: 24
- Thank you received: 0
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
- Topic Author
- Offline
- Junior Member
Less
More
7 years 1 week ago #152540
by gorp
Relevance condition based on summed questionnaire score was created 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
7 years 1 week ago - 7 years 1 week ago #152564
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Relevance condition based on summed questionnaire score
Try:
manual.limesurvey.org/Expression_Manager#Access_to_Functions
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
7 years 1 week ago #152585
by gorp
Replied by gorp on topic Relevance condition based on summed questionnaire score
Thank you: it works perfectly fine now
The topic has been locked.