Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

undefined variable issue

More
5 years 4 months ago #198442 by Sportingboyke282
Hi you all,

I have a very silly issue. I made a Multiple choice question Q1, with 2 options (just '1' and '2').
When I want to use this question Q1 in an if-statement, it always says Q1 is an undefined variable.
But it clearly is defined. Does any body know what I am doing wrong?
This is a simplified version of my issue.

I am very sorry cause this seems like a very basic issue but I've been trying to solve this for a long time.
I am using Version 4.1.18+200416.
Thanks in advance.
More
5 years 4 months ago #198474 by tpartner
Replied by tpartner on topic undefined variable issue
Multiple-choice questions do not exist as variables because they don't have columns in the data, their sub-questions have columns so those are the variables.
Code:
{Q1_sqCode}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose