Welcome to the LimeSurvey Community Forum

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

FUNCION sum

  • PPINOS1711
  • PPINOS1711's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #168549 by PPINOS1711
FUNCION sum was created by PPINOS1711
Al actualizar a la versión 3.7.2 dejo de funcionar la función sum, por ejemplo
creo una variable N1 de respuesta simple y luego
creo una variable tipo ecuación QN1 {if(N1 == 1; QN1="8.5"; "FALSO"}
creo otra variable tipo ecuación QN2 {if(N1 == 2; QN2="10.5"; "FALSO"}
creo una variable tipo ecuación TOTAL {sum(QN1,QN2}
creo una variable tipo ecuación NSE {if(TOTAL <= 10; NSE="BAJO"}
creo una variable tipo ecuación NSE {if(TOTAL >= 11; NSE="ALTO"}

Al correr la encuesta QN1 Y QN2 toman los valores asignados pero TOTAL se queda en cero, antes de la versión 3.... todo esto estaba implementado y funcionaba sin ninguna problema, me pueden ayudar a resolver este tema de alguna otra forma.

Saludos y gracias
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago - 5 years 11 months ago #168553 by holch
Replied by holch on topic FUNCION sum
El problema no es la función "sum", pero tus ecuaciones.

"8.5" no es un número, pero un string. Con strings no se puede calcular. Saca los "" y deveria funcionar. Dependiendo de tu instalation, el problema também puede ser "." y "," para los decimales.

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 years 11 months ago by holch.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose