- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Random draw. Not the same result in the screen and in the responses in LS.
- PG0124
-
Topic Author
- Offline
- New Member
-
Less
More
5 months 1 week ago - 5 months 1 week ago #252155
by PG0124
Replied by PG0124 on topic Random draw. Not the same result in the screen and in the responses in LS.
I tried it, but it does not seem to change anything.
What is really strange is that it is as if there were a memory effect.
I modified the threshold on randvalue from 4 to 90, so that the YES case is more frequent, and it is easier to get it. And then I went back to 4. The first time I executed the survey just after going back to 4 gave me a randvalue of 91. In the screen, when executing the survey, it was displayed "NO", taking into account the modified threshold, whereas in the LimeSurvey database, I have a "YES" (see attached) as if it still takes into account the previous 90 threshold, and the following calculations differ from those I had on the screen.
I am doing the modifications on the activated version of the survey. Does this make any difference?
What is really strange is that it is as if there were a memory effect.
I modified the threshold on randvalue from 4 to 90, so that the YES case is more frequent, and it is easier to get it. And then I went back to 4. The first time I executed the survey just after going back to 4 gave me a randvalue of 91. In the screen, when executing the survey, it was displayed "NO", taking into account the modified threshold, whereas in the LimeSurvey database, I have a "YES" (see attached) as if it still takes into account the previous 90 threshold, and the following calculations differ from those I had on the screen.
I am doing the modifications on the activated version of the survey. Does this make any difference?
Last edit: 5 months 1 week ago by PG0124. Reason: Attachment not well located
Please Log in to join the conversation.
- holch
-
- Offline
- LimeSurvey Community Team
-
Less
More
- Posts: 11660
- Thank you received: 2742
5 months 1 week ago - 5 months 1 week ago #252158
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Random draw. Not the same result in the screen and in the responses in LS.
As Joffm says, please send the whole survey file then.
Because if it displays correctly during the survey, and later changes, this sounds strange. Would be interesting if there are other equations that might impact this.
Do you have other equations that include "DIS"? For example, if you check if DIS is "YES" or "NO" but use a single "=" instead of "==", then you might overwrite the actual value with the "compared" value.
Sounds the only reasonable explanation to me.
Because if it displays correctly during the survey, and later changes, this sounds strange. Would be interesting if there are other equations that might impact this.
Do you have other equations that include "DIS"? For example, if you check if DIS is "YES" or "NO" but use a single "=" instead of "==", then you might overwrite the actual value with the "compared" value.
Code:
DIS=="YES" --> checks if the variable DIS equals "YES" DIS="YES" --> will give the variable DIS the value "YES"
Sounds the only reasonable explanation to me.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Last edit: 5 months 1 week ago by holch.
The following user(s) said Thank You: DenisChenu
Please Log in to join the conversation.
- PG0124
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
5 months 1 week ago #252163
by PG0124
Replied by PG0124 on topic Random draw. Not the same result in the screen and in the responses in LS.
I agree with you but can't find any DIS='YES' with only one = in my code.
I attach here what my code using DIS is (it is just part of the code, so some variables such as DECISION 1 etc. are not defined in it). I am not using DIS anywhere else in the survey.
I attach here what my code using DIS is (it is just part of the code, so some variables such as DECISION 1 etc. are not defined in it). I am not using DIS anywhere else in the survey.
Please Log in to join the conversation.