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
  • PG0124's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 1 week ago - 5 months 1 week ago #252155 by PG0124
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?

Last edit: 5 months 1 week ago by PG0124. Reason: Attachment not well located

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago - 5 months 1 week ago #252158 by holch
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.
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
  • PG0124's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 1 week ago #252163 by PG0124
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.

File Attachment:

File Name: limesurvey...4769.lss
File Size:55 KB

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose