Welcome to the LimeSurvey Community Forum

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

Randomize winners only above a certain threshold

  • dgiacometti
  • dgiacometti's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 10 months ago #137519 by dgiacometti
I was able to randomize 1/5 winners of the participants in the survey.

Is it possible to randomize winners with 2 conditions:

- only 1/5 of the participants;
- only if they score equal or above a certain threshold in the survey? (say x points)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 10 months ago #137528 by tpartner
Shold be no problem with Expression manager. Something like:
Code:
rand(1, 5) == 1 AND sum(q1, q2, q3, q4) > 10

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose