Portada
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:DO NOT show question 5.0.1 if... (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:DO NOT show question 5.0.1 if...
#16826
herrberg (User)
Fresh Lemon
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
[done] DO NOT show question 5.0.1 if... 3 Months, 3 Weeks ago Karma: 0  
Hi,

as other people, I have been sweating some over the conditional questions. It seems like the developers are afraid of OR statements. That's too bad since I need such a statement.

However, an OR functionality could be easily implemented (?) with the use of a NOT operator, unless I have forgotten my boolean algebra from 20 years back.

A | B | C = !(!A & !B & !C)

So, a simple tickbox in the condition designer window that sets the question NOT to display if the AND condition is met would suffice.

Anyone care to implement this in 1.71+? I would need it by the end of this week...
 
Logged Logged  
 
Last Edit: 2008/08/04 15:18 By Mazi.
  The administrator has disabled public write access.
#16843
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Offline Click here to see the profile of this user
Re:DO NOT show question 5.0.1 if... 3 Months, 3 Weeks ago Karma: 25  
Conditions are very tricky to handle. That's one of the reasons why only "AND" condisions are supported up to now.

If you will find someone who can improve the conditions till the end of the weeks this has to be a coding god.
If so please ask this god if he wants to join the limesurvey dev team
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#16873
herrberg (User)
Fresh Lemon
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:DO NOT show question 5.0.1 if... 3 Months, 3 Weeks ago Karma: 0  
The "this week" was a joke, of course

My suggestion was to implement a NOT SHOW operator, this would fix my problem and I would be able to manage with AND operators only. I don't know what will happen to the rest of the lime package but maybe... just maybe...

What is your gut feeling, Mazi? If I just write a hard-coded flag somewhere in a config file

reverse_show_decision = 1;

and verify if this this flag in whatever code that decides whether to show a conditional question or not... will I run into problems? Are conditions checked in other places than the mere generation of questions, will there be problems in the statistics sections... or such?
 
Logged Logged  
  The administrator has disabled public write access.
#16877
c_schmitz (Admin)
Moderator Lime
Posts: 1354
graphgraph
User Online Now Click here to see the profile of this user
Re:DO NOT show question 5.0.1 if... 3 Months, 3 Weeks ago Karma: 39  
My recommendation: Don't do it.
Too much hassle, too little reward.
 
Logged Logged  
 
Best regards

Carsten Schmitz
LimeSurvey Project Leader
  The administrator has disabled public write access.
Go to top