"OR" filter becomes "AND" filter when set by condition designer

More
4 years 4 days ago #100854 by jonsen
jonsen created the topic: "OR" filter becomes "AND" filter when set by condition desig
Hi everyone!

So I encountered something unexpected and would like to file a bug report. I just want to make sure that this wasn't my own fault...

When I set a condition based on ONE variable, the condition designer shows an "OR" between the conditions, as I expected. When saving this, the formula in the overview (and in the logic file) shows an "AND" between the condition. Testing this, the formula from the logic file is used, the survey filters faulty.

#########################################
CONDITION DESIGNER and EXPECTED BEHAVIOUR:
((a=="1") or (a=="5")) => question shown

OUTPUT and REAL BEHAVIOUR:
((a=="1") and (a=="5")) => question shown
#########################################

Of course, the second condition is impossible, so the question is NEVER shown. This happens ONLY when using the condition designer. Manually setting the relevance equation to ((a=="1") or (a=="5")) works as expected.

Best
Jonsen


Stats: Linux 2.6.32-5-amd64, Apache 2.x, PHP 5.3.3-7+squeeze17, LimeSurvey 2.00+ Build 130929

Please Log in to join the conversation.

More
3 years 11 months ago #101819 by jonsen
jonsen replied the topic: "OR" filter becomes "AND" filter when set by condition desig
I can not find a bug report for this, but I'm not sure the error exists anymore - does anybody know if it was resolved?

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now