Thank you for your answers. I changed the answer codes to numerics. When I use the if(
music_SQ001.NAOK
< 4, 'RED', 'BLUE'), it only works when the question is a text display one. When I try to use it in a list(radio) question it's not working. I attached the lss file of the survey.
The survey is a little bit complicated. Participants are separated into two groups as RED and BLUE. Then, they answer 5 decision-making tasks which are Equal Allocation, Dictator Game, Ultimatum Game, Prisoner's Dilemma. To summarize:
First, the participants answer the music question. Based on their answer
only to the Pop question, they got separated into RED and BLUE groups. Therefore, I would like to give the first feedback based on an array subquestion's answer such as if they answer 1,2 or 3 to Pop subquestion, they will be in the RED group. If they answer 4,5 or 6 they will be in BLUE group.
Afterwards they answer 5 different tasks where they have to choose the group of their partner then also an allocation. For this feedback, I would like to call back their answer such as "You chose a partner from "RED/BLUE" group. Which allocation you would like to choose?".
At the end, after all the tasks are finished, they are asked to explain their choices in the tasks by answering a list question. For this feedback, I would like to call back all their answers plus the group membership information based on Pop question such as "You were in RED/BLUE group. In the Ultimatum Task, you chose a RED/BLUE partner. You chose the allocation (....). Why did you make that decision?"