problems randomising survey using rand().

Mehr
4 Wochen 2 Tage her #179404 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
Yes, the result of rand() should be recognized as a number.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Wochen 2 Tage her #179407 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
In fact : not exactly :).

Because you can force it as number :).

BUT Something.NAOK == 1 must work if Something.NAOK === "1" and Something.NAOK === 1


See this old discussion here : bugs.limesurvey.org/view.php?id=8324 (at this time : i think we must compare it as string if === "1")
And old issue here : bugs.limesurvey.org/view.php?id=7805

And new issue here : bugs.limesurvey.org/view.php?id=14337

There are a major issue in Expression for all numeric value in 3.X

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Wochen 2 Tage her - 4 Wochen 2 Tage her #179412 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
Yes exactly!

"rand — Generate a random integer" - php.net/manual/en/function.rand.php

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 Wochen 2 Tage her by tpartner.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Wochen 2 Tage her #179415 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
yes, but i think it must not depend on the way it was saved too :)

@FeCanever : can you test with manual.limesurvey.org/Question_type_-_Eq...y_.28numbers_only.29 to ON ?

And can you report the issue with a simple survey (2 group only)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Wochen 5 Stunden her #179449 von FeCanever
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi,
I tested with manual.limesurvey.org/Question_type_-_Eq...y_.28numbers_only.29 to ON and it now works if I use ((random == 1)) and ((random == 2)), without the quotes. Awsome!

Sorry about my silly question, but what do you mean when you ask If I can report it? Do you mean here to you guys and to support?
Folgende Benutzer bedankten sich: DenisChenu

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Wochen 6 Tage her #179455 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
Support forum : the place to ask free help by LimeSurvey user.
bug report : www.limesurvey.org/community/bug-tracker the place to report bug.

It's not because i'm on Forum and on Mantis than you don't have to report issue

A bug not reported on mantis is a bug not fixed

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Wochen 6 Tage her #179464 von FeCanever
COM_KUNENA_MESSAGE_REPLIED_NEW
Ok, great. I'll do that!
Folgende Benutzer bedankten sich: DenisChenu

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Wochen 6 Tage her - 3 Wochen 6 Tage her #179477 von FeCanever
COM_KUNENA_MESSAGE_REPLIED_NEW
Denis,

When I was getting ready to report the bug in the support forum, I turned off the "numbers_only" option, and somehow it now works even if I let ((random ==1)) without the quotes. Should I go ahead and report it anyway?
Last edit: 3 Wochen 6 Tage her by FeCanever.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Wochen 6 Tage her #179483 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
In my opinion : since we have issue (fixed) with previous release, it's a bug in this new release.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha