Welcome to the LimeSurvey Community Forum

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

Relevance Equation Not Working

  • jmdsbussrv
  • jmdsbussrv's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 8 months ago #110960 by jmdsbussrv
Relevance Equation Not Working was created by jmdsbussrv
Wow, OK, spent 4 hours on this and can't figure out why it's not working.

((25474X73X703.NAOK == "HLPN") or (25474X73X704.NAOK == "HLPN") or (25474X73X705.NAOK == "HLPN") or (25474X74X710.NAOK != "YFIN") or (25474X74X713.NAOK != "YFLN"))

Easier to read:

((25474X73X703.NAOK == "HLPN")
or (25474X73X704.NAOK == "HLPN")
or (25474X73X705.NAOK == "HLPN")
or (25474X74X710.NAOK != "YFIN")
or (25474X74X713.NAOK != "YFLN"))

For the relevance field on a group, the three "HLPN"'s are all in one group and the other 2 are in another group. Survey set to group by group.

The first three alone work.

I cannot get the second 2 to work together. They are both "not equal to" equations. They will work separate from each other, but not together. I've tried isolating each by parentheses, different combinations, etc. Nothing makes the question hide.

Any help is appreciated.
The topic has been locked.
  • jmdsbussrv
  • jmdsbussrv's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 8 months ago #110961 by jmdsbussrv
Replied by jmdsbussrv on topic Relevance Equation Not Working
Found a workaround ....

((25474X73X703.NAOK != "HLPY") and (25474X73X704.NAOK != "HLPY") and (25474X73X705.NAOK != "HLPY") and (25474X74X710.NAOK != "YFIN") and (25474X74X713.NAOK != "YFLN"))

But it leads me to the question ...

Are we not able to combine the == and != into a single equation? Or is my syntax wrong?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose