Hi, this is not quite correct.
1. Underscore:
This is used to build the QCode.
In single questions (list(radio)) it is just the questioncode ( Q1 )
In question with one axis of subquestions (multiple, array) it is questioncode_subquestioncode ( Q1_SQ001 ).
In questions with two axis of subquestions (array(text), array(number)) it is questioncode_subquestionYcode_subquestionXcode (Q1_Y001_X001)
So to address a variable you have to use this QCode.
Please read here:
[url]
www.limesurvey.org/manual/ExpressionScri...code_variable_naming
[/url]
2. Dot
Hereby you add some properties (what exactly you want to receive)
This you find in the manual here
[url]
www.limesurvey.org/manual/ExpressionScri...#Access_to_variables
[/url]
You see that
something like {Q1} returns the either the response code (in coded questions - list(radio), multiple, etc.) or the text (in not coded questions - short text, numbers ,etc).
Analogue {Q1_SQ001} returns the response code of the subquestion SQ001 in array Q1.
But {Q1.shown} returns the displayed text of the selected response, resp. subquestion {Q1_SQ001.shown}
See the manual for other properties, like
".value" to access the assessment value,
".question" to access the question resp. subqestion text,
".qid", ".gid" to access the order in which questions resp. groups were displayed
and many more.
The problem is that the answer is recorded in the database as Guilt[1] not just as the numeric value 1.
In the database there is only the code; this construct "Guilt[1]" is only shown in the response table of the GUI.
And if you export your data you have the option to choose whether you would like to get the code or the text.
Joffm
I was being misled and given the run around by ChatGPT which failed to recognize the difference between . and underscore.
Not surprising. ChatGPT has no knowledge of LimeSurvey.