- Posts: 5
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Warning with plus operator (+)
For consistency between JavaScript and PHP, the plus operator (+) does addition if both operands are numeric, but does concatenation if both parts are non-numeric strings. However, we recommend using the join() function for concatenation and sum() function for addition, as that makes your intent more clear, and avoids unexpected results if you were expecting strings but got numbers instead (or vice versa).
Code: A10113 (Eq) {substr(A10110.NAOK,A10111.NAOK+1)}
Code: A10113 (Eq) {substr(A10110.NAOK,A10111.NAOK)+1}
Please do not say, you got an "error message", if the message itself says "... contain warnings...".In the survey logic I get an error message "questions contain warnings that need to be verified.“
Thanks for clarifying. Just saw your screenshot and there the "+" seems ot be outside the "()", which is why I guessed.And @holch.
Should not.
This is correct.