Please help us help you and fill where relevant:
LimeSurvey version: Versión 5.6.49+231212
Own server or LimeSurvey Cloud: Own
Survey theme/template: Fruity
==================
hi there, i want to do a simple thing that i think it was easy to do, at first, i have to show an error message if TP1 is not equal to the surrounded in yellow TP2 cells (i attach lss) , and it works putting this on equation validation question
(sum(TP1.NAOK) == sum(TP2_SQ001_SQ001,TP2_SQ001_SQ002,TP2_SQ002_SQ001,TP2_SQ002_SQ002,TP2_SQ003_SQ001,TP2_SQ003_SQ002,TP2_SQ004_SQ001,TP2_SQ004_SQ002)
And this on question help
{if((sum(TP1.NAOK) == sum(TP2_SQ001_SQ001,TP2_SQ001_SQ002,TP2_SQ002_SQ001,TP2_SQ002_SQ002,TP2_SQ003_SQ001,TP2_SQ003_SQ002,TP2_SQ004_SQ001,TP2_SQ004_SQ002)), '', 'Os datos non coinciden co total de TP1.<br />')}
Works fine, when its equal, dont show the message, and when its different, show the error message.
But the problem comes when they say to me that the error have to shown just in case TP1 is greater than the sum of the other cells, i think just changing == for <= is enough but when i do that, starts to have a weir behavior, if you put 5 and 5 on the 2 first cells on TP2 and put 10 on TP1 dont show the message, but if you put 9,8,7 or 11,12 or 13 on TP1, show the error message.
Can anyone tell me what im doing wrong?
Thanks for the help.
Image to understand the example