Welcome to the LimeSurvey Community Forum

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

I'm creating a poll for the radio.

  • AdamPolaco
  • AdamPolaco's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #203911 by AdamPolaco
I'm creating a poll for the radio. was created by AdamPolaco
Hello

I'm creating a poll for the radio.
The survey consists of 6 questions, in each question there are 6 answers (a, b, c, d, e, f)
I have to create such a condition that when I give at least 3 answers to "a" it turns out that, for example, you like rock, at least 3 answers to "b" you like disco, etc.

Thank you and best regards
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago - 3 years 8 months ago #203913 by Joffm
Replied by Joffm on topic I'm creating a poll for the radio.
Hi,
here
manual.limesurvey.org/ExpressionScript_-...mplemented_functions
you find the function "countif"
This gives you the number of answers to each item a,b,c,...
With a nested "IF-statement" decide what he likes
{if(countif("a",Q1.NAOK,Q2.NAOK,...)>2,"rock",if(countif("b",Q1.NAOK,Q2.NAOK,...)>2,"disco",if(...

What happens if there is a 3:3 distribution like "a,a,b,a,b,b"?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 8 months ago by Joffm.
The topic has been locked.
  • AdamPolaco
  • AdamPolaco's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #203915 by AdamPolaco
Replied by AdamPolaco on topic I'm creating a poll for the radio.
what type i should to use
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #203916 by Joffm
Replied by Joffm on topic I'm creating a poll for the radio.
Since you didn't mention how and where you want to use the result, I just showed the function.

If you want to only show the result, in a question "text display".
Or in the question text of another question, like
"You said, you love {if (countif (.....}.
How do you rate .... "

Or, if you want to save the result, use an equation.

Up to you.
Best, you read again the manual
manual.limesurvey.org/ExpressionScript_E..._-_Quick_start_guide

and study the sample survey
manual.limesurvey.org/ExpressionScript_s...loring_and_Equations

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose