I would like to customize my reminder emails for participants, depending on group condition and the response to a different variable (previous psychoeducation: yes/no). In total I would need 3 different email versions. One for the control group, one for the intervention group without previous psychoeducation, and one for the intervention group with previous psychoeducation.
I was thinking of codes like this:
{if(Group == '1', 'Text for control group', ' ')}
{if(Group == '2' AND Psychoeducation == 'Y', 'Text for intervention group with previous psychoeducation', ' ')}
{if(Group == '2' AND Psychoeducation == 'N', 'Text for intervention group without previous psychoeducation, ' ')}
Am I correct in assuming that I use the code of the question == and then the respective answer option in single quotes? or do I use the code of the respective answer option and then also in single quotes?
I am using Version 3.22.11+200330.
Thanks in advance!
1. Remind to always add .NAOK ( or .shown) to your question code
2. You have a button to validate Expressions
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.