Welcome to the LimeSurvey Community Forum

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

Array (10 point choice) question equation

  • marektondryk
  • marektondryk's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 7 months ago #187188 by marektondryk
Array (10 point choice) question equation was created by marektondryk
Hi,
I have Array (10 point choice) question q01 (it is code of question) with two subquestions SQ001 and SQ002.
SQ001: How much money You have?
SQ002: How much money You want?

How should look equation to calculate how much money someone need to earn?

SQ001: How much money You have? Answer=1
SQ002: How much money You want? Answer=5

You need (SQ002-SQ001) $4
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #187190 by Joffm
Replied by Joffm on topic Array (10 point choice) question equation
Hi,
if you read the manual
manual.limesurvey.org/Expression_Manager...code_variable_naming

In the first line you see
Here are the details of how to construct a Qcode (and access some properties) by question type. In general, Qcodes are constructed as:

QuestionCode . '_' . SubQuestionID . '_' . ScaleId


Example of 10-point array in the second row: {Q2_L2}
QuestionCode_SubQuestionID

So in your case:
{q01_SQ002.NAOK-q01_SQ001.NAOK}

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: marektondryk
The topic has been locked.
  • marektondryk
  • marektondryk's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 7 months ago #187261 by marektondryk
Replied by marektondryk on topic Array (10 point choice) question equation
Thank You Joffm!!!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose