- Posts: 27
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Redraw a number based on a condition
- LSWipo
- Topic Author
- Offline
- Junior Member
Less
More
1 year 8 months ago #229944
by LSWipo
Redraw a number based on a condition was created by LSWipo
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey 3.0 theme editor
Own server or LimeSurvey hosting:
Survey theme/template: test_theme (test_theme)
==================
Hello,
In my survey, respondents are asked to select between two jobs based on some characteristics. I need the payment option redrawn if one job is strictly better than the other.
A better job means: more flexibility in terms of setting your own hours, more vacation days, less deadline pressure, more days to work from home, less multitasking, better pay and less commuting time to work. If in the experiment, one job is better than the other job in every aspect or the hourly payment in both jobs is the same, the payment must be redrawn. This redrawn can be applied two times. I added EXP*randpay variables to set the condition but the code does not work. Could you please help me with this?
Please see the lss export.
Your LimeSurvey version: LimeSurvey 3.0 theme editor
Own server or LimeSurvey hosting:
Survey theme/template: test_theme (test_theme)
==================
Hello,
In my survey, respondents are asked to select between two jobs based on some characteristics. I need the payment option redrawn if one job is strictly better than the other.
A better job means: more flexibility in terms of setting your own hours, more vacation days, less deadline pressure, more days to work from home, less multitasking, better pay and less commuting time to work. If in the experiment, one job is better than the other job in every aspect or the hourly payment in both jobs is the same, the payment must be redrawn. This redrawn can be applied two times. I added EXP*randpay variables to set the condition but the code does not work. Could you please help me with this?
Please see the lss export.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
1 year 8 months ago #229946
by Joffm
So please: Extract the parts that are relevant to show the issue and send only this as lss.
And: I already showed you how you could shorten this monstrosity tremendously.
Joffm
P.S. Ehrlich gesagt: Das tue ich mir wirklich nicht noch einmal an.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Redraw a number based on a condition
Where? I only saw them in the condition of "EXPxRandpayV2"I added EXP*randpay variables to set the condition
Which code doesn't work? The relevance equation of "RandpayV2"? Or?but the code does not work.
So please: Extract the parts that are relevant to show the issue and send only this as lss.
And: I already showed you how you could shorten this monstrosity tremendously.
Joffm
P.S. Ehrlich gesagt: Das tue ich mir wirklich nicht noch einmal an.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- LSWipo
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
1 year 8 months ago #229947
by LSWipo
Replied by LSWipo on topic Redraw a number based on a condition
Dear Joffm,
Thank you for your reply.
I know that you showed me before how to shorten the survey but I am not the owner of the survey. I only try to apply what I am asked to do at that moment. I am sorry for not applying everything that you told me before but it is not totally up to me.
Please see the lss export with relevant parts and separately for the questions.
The code is in the relevance equation of Exp*RandpayV2 and EXP*RandpayV3. I guess the code does not work.
I will appreciate it if you could help.
Thank you for your reply.
I know that you showed me before how to shorten the survey but I am not the owner of the survey. I only try to apply what I am asked to do at that moment. I am sorry for not applying everything that you told me before but it is not totally up to me.
Please see the lss export with relevant parts and separately for the questions.
The code is in the relevance equation of Exp*RandpayV2 and EXP*RandpayV3. I guess the code does not work.
I will appreciate it if you could help.
Please Log in to join the conversation.