Welcome to the LimeSurvey Community Forum

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

How to Check if 5 or more questions are answered 'Yes' ?!?!

  • burhandodhy
  • burhandodhy's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago - 9 years 7 months ago #129019 by burhandodhy
Hi

im creating one survey in which i have 11 question in group all are Yes and No let say A1 - A11 and i want to show the A11 question if more than 5 question are answer yes ....
Last edit: 9 years 7 months ago by burhandodhy.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 7 months ago #129022 by tpartner
Assuming you only want to show A11 if at least 5 of A1-A10 are "Yes", use this as the relevance equation for A11:

Code:
sum(A1=='Y', A2=='Y', A3=='Y', A4=='Y', A5=='Y', A6=='Y', A7=='Y', A8=='Y', A9=='Y', A10=='Y') > 5

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose