Welcome to the LimeSurvey Community Forum

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

How to post code Actual age to age slab

  • Joffm
  • Joffm's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #213992 by Joffm
Hi,
[url] www.limesurvey.org/manual/ExpressionScri..._Presentation#Syntax [/url]

You use a nested IF-stament.
So both questions are shown to the participants?
You do not want just to calculate the age brackets hidden?

Then you insert a (hidden) question of type "equation" between both questions
{Q2=if(Q1 lt 20,1,if(Q1 lt 30,2,if(Q1 lt 40,3,if(Q1 lt 50,4,if(Q1 lt 60,5,6)))))}

   


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: rajkumar_dms
The topic has been locked.
  • Joffm
  • Joffm's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #214023 by Joffm
Replied by Joffm on topic How to post code Actual age to age slab
There is no image.

How do you display your questions?
"question by question", group by group", "all in one"?

Obviously this cannot work, if the equation and the bracket question are on the same page.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: rajkumar_dms
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose