Welcome to the LimeSurvey Community Forum

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

Relevant equation

  • LSSSurvey1
  • LSSSurvey1's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 9 months ago #170661 by LSSSurvey1
Relevant equation was created by LSSSurvey1
Hi,
which programming language should we use in the relevant formula? i have basic formula but couldn't get it to work..
My first question is (select your location), second question has array with 10 subquestion that i need to put relevant formula in each one of them so it shows up only if the relevant location is selected!.. any help please?

i tried all the below
G1Q00001 == 'Arizona' OR G1Q00001 == 'Texas'
[G1Q00001 == 'Arizona' OR G1Q00001 == 'Texas']
[((G1Q00001 == 'Arizona' OR G1Q00001 == 'Texas'))]
[((G1Q00001 == 'Arizona') OR (G1Q00001 == 'Texas'))]
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 9 months ago #170663 by tpartner
Replied by tpartner on topic Relevant equation
You need to use answer codes, not answer labels.
Code:
G1Q00001 == 'A1' OR G1Q00001 == 'A2'

Cheers,
Tony Partner

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

Lime-years ahead

Online-surveys for every purse and purpose