It is capitalized and assigned positions but I do not know why the "if statement" ({if(position < 10,"West",if(position < 22,"East",if(position < 35,"ABC","DEF")))} is always giving DEF
Without seeing your code it is difficult to understand why.
At the moment seems like the conditions are never met, thus DEF is the only result. So you need to check your equation, e.g. if there is any error highlighted.
Add a LSS file with only the relevant questions to this post, then we can have a look and see what you have done and where the problem is.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
I have asked for a LSS file. Please do not provide LSQ or LSG files. Why?
1. They are language sensitive. They can only be imported into a survey with the same language
2. Problems can arise from general survey configurations
3. If we always have to create a new survey and groups to import LSQ files to help in the forum, this will increase the time spend on doing so, which could be better invested in helping others.
So, please create a copy of your survey, exclude all parts that are not relevant for the problem and then export it as LSS.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Your problem was that there was not only the function in the question text but some more HTML.
Instead of {strpos("..",Q1)}
there was {strpos("..",Q1)}
<p> </p>
Therefore the result of the equation was not e.g. "47"
but "47 " (with a blank at the end).
So your IF-statement couldn't work correctly.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless