- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
On the 2nd dropdown (q911), i have added on Question validation equation (! is_empty(q911.shown) and q911.shown <= q9.shown) but this condition doesn't work with the value 5 when the value of q9 is smaller than 50 ?? The value 100 also doesn't work with the condition ??
I just unsderstood that the values in dropdown list are all to be considered as strings. Even if there are only integer values, they must be converted with intval().
See mantis issue …holch wrote: @DenisChenu:
But is it really an issue? I mean here they are comparing basically strings, aren't they?
Then : you think it's an issueholch wrote: …
My first thought would also for the answer code to compare integer with integer if only numbers used as answer code. But I understand your point.
Excatly : for a logic man : .code is code => it's string, but it's really more easy to compare as number if it can be numberholch wrote: I think considering all answer codes as string would be theoretically cleaner, but I think it makes things overly complicated in practice. Tricky one.