- Posts: 10286
- Thank you received: 3649
Ask the community, share ideas, and connect with other LimeSurvey users!
{if(substr(A41.NAOK, 0, 1) == 'V', 'she', if(substr(A41.NAOK, 0, 1) == 'M', 'he', ''))} {if(substr(A42.NAOK, 0, 1) == 'V', 'she', if(substr(A42.NAOK, 0, 1) == 'M', 'he', ''))} {if(substr(A43.NAOK, 0, 1) == 'V', 'she', if(substr(A43.NAOK, 0, 1) == 'M', 'he', ''))} {if(substr(A44.NAOK, 0, 1) == 'V', 'she', if(substr(A44.NAOK, 0, 1) == 'M', 'he', ''))}
demo.limesurvey.org/index.php?r=admin/questions/sa/editquestion/surveyid/231563/gid/32/qid/172
Notpartner wrote: ??? How does that work? Surely you should need the entire sub-question code when using a sub-selector with that.
sq_X - where X is a row or column identifier. Only sub-questions matching pattern X are selected. Note that search is done on complete code identifier, then sq_X match and include subquestions nX, X, Xn (e.g. if you use sq_1, subquestions a1, 1a, 1, 11 or 001 was included). Put attention at dual scale question type where subquestions code are QCODE_SQCODE_1 and QCODE_SQCODE_1 and to ranking question type where subquestions code are QCODE_1,QCODE_2 ....