The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Working with Constants

Working with Constants 6 months 3 weeks ago #87634

Hi guys,

I am working on the below scenario and applying a "constant" skip logic however so far it doesn't seem to be working.

So, I have 1 to 20 questions in my survey.
And, I do not want to show Q5 to Q10 if someone falls under below postcodes!

6280, 6284, 6285, 6286, 6288, 6290

Postcode question is Q1c: What postcode do you live in?

So far I tried:

(O1c.NAOK != "6280" or O1c.NAOK != "6284" or O1c.NAOK != "6285" or O1c.NAOK != "6286" or O1c.NAOK != "6288" or O1c.NAOK != "6290"))


and this equations as well,
((q1== "N") OR ((Q1c != "6230") and (Q1c != "6231") and (Q1c != "6280") and (Q1c != "6284") and (Q1c != "6285") and (Q1c != "6286") and (Q1c != "6288") and (Q1c != "6290") and (O1a == "Y")))


So far no luck...

Any help will be highly appreciated.

Cheers,
Mark.
Last Edit: 6 months 3 weeks ago by StuartMark0. Reason: Update
The administrator has disabled public write access.

Re: Working with Constants 6 months 2 weeks ago #87661

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2856
  • Thank you received: 424
  • Karma: 244
Try:
(Q1c.shown != '6280' and Q1c.shown != '6284' and Q1c.shown != '6285' and Q1c.shown != '6286' and Q1c.shown != '6288' and Q1c.shown != '6290')
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 6 months 2 weeks ago by tpartner.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.222 seconds
Donation Image