eleren wrote: OK, I understand, but I can't figure out the right syntax:
I tried
{if(Q1_sq001.shown=='don't agree at all')}{Q1_sq001.question}: {Q1_sq001.shown}
but his gives me a syntax error.
You are Also using single quote around the to be checked text but the to be checked text contains a single quote as well. So that won't work because the quote within the text closes the expression.
In addition, the whole expression is a little wrong.
It should be like this:
{if(Q1_sq001.shown=="don't agree at all", Q1_sq001.question, Q1_sq001.shown)}
Some more notes:
1. Subquestion codes are usually like "SQ001" and not "sq001".
2. Your expression shows the question text if the answer is "don't agree..." and if not it shows the answer texts. Not sure if this is intended. Possible solution to show question text + answer text if true and nothing if false:
{if(Q1_sq001.shown=="don't agree at all", join(Q1_sq001.question, ": ", Q1_sq001.shown),"")}