Welcome to the LimeSurvey Community Forum

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

Expression manager always shows syntax errors

  • terminus
  • terminus's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 day ago - 10 years 1 day ago #106421 by terminus
I am running Limesurvey 2.00+ Build 131206, and I want to add simple conditions like "show question 5 if question 4 was answered yes". Even such simple conditions are failing, and the questions are never shown. See the attachment, which indicates syntax errors with the expression ((4.NAOK"Y")). When I edit the question it appears as ((273243X1X4.NAOK "Y")).

The errors indicated are "Expected expressions separated by commas" and "Extra token found after expressions". It seems that the problem is that the == operator is missing, and has been replaced by spaces. But note that I didn't compose the expression manually, I just used added the condition using the web interface. So is this a bug (perhaps one fixed since 131206)?
Last edit: 10 years 1 day ago by terminus.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 day ago #106425 by DenisChenu
Replied by DenisChenu on topic Expression manager always shows syntax errors
Did you try to remove the condition and add it again ?

1st time i see this.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • terminus
  • terminus's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 day ago #106426 by terminus
Replied by terminus on topic Expression manager always shows syntax errors
Yes I tried that. The only workaround that worked was adding the condition, then editing the question to copy the erroneous generated expression (eg. 273243X1X4.NAOK "Y"), then deleting the condition, then adding a manually-edited version of the expression (eg. 273243X1X4.NAOK=="Y"). Works, but is annoying and time-consuming.
The topic has been locked.
  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 day ago #106427 by mdekker
Replied by mdekker on topic Expression manager always shows syntax errors
What is your question code?

---
Menno Dekker
The topic has been locked.
  • terminus
  • terminus's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 day ago #106428 by terminus
Replied by terminus on topic Expression manager always shows syntax errors
Just sequential numbers, like "1".
The topic has been locked.
  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 day ago #106429 by mdekker
Replied by mdekker on topic Expression manager always shows syntax errors
That is not supported. If you change it to q1 (so prefix with a letter) all should work fine.

---
Menno Dekker
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose