- Posts: 199
- Thank you received: 7
Ask the community, share ideas, and connect with other LimeSurvey users!
I check with 2.73.3 : seems OKbrais24 wrote: Even with not mandatory the issue happens, my LS version is 2.72.3+171020
Joffm wrote: Yes, seems to be a bug. Still happens in 3.25.1.
But you may validate the values instead using min.value and max.value
intval(10*sum(self.NAOK))/10 ge 50 AND intval(10*sum(self.NAOK))/10 le 100
Joffm
On the other side: Talking about bugs in your outdated version (2.50/2.73, isn't it?) doesn't help.
brais24 wrote:
Joffm wrote: Yes, seems to be a bug. Still happens in 3.25.1.
But you may validate the values instead using min.value and max.value
intval(10*sum(self.NAOK))/10 ge 50 AND intval(10*sum(self.NAOK))/10 le 100
Joffm
On the other side: Talking about bugs in your outdated version (2.50/2.73, isn't it?) doesn't help.
I try to use that on question validation equation but dont do nothing, where should I put that to make it work?
Please, yes.brais24 wrote: Ok, I get done, Thank you all and specially Joffm, should I report this bug?
echo "sum(90,8,0.4,0.4,1.2) = ".array_sum([90,8,0.4,0.4,1.2]);
sum(90,8,0.4,0.4,1.2) = 100
<?php echo "Sum of 90, 0.4, 0.4, 1.2 and 8<br><br>"; $i1=90; $i2=0.4; $i3=0.4; $i4=1.2; $i5=8; $sum=$i1+$i2+$i3+$i4+$i5; echo "Sum: ".$sum."<br>"; echo "Sum equal 100: ";if($sum==100) {echo "true";} else {echo "false";} ?>
<?php echo "array_sum([90,8,0.4,0.4,1.2]) = ".array_sum([90,8,0.4,0.4,1.2])."<hr>"; echo "array_sum([90,8,0.4,0.4,1.2]) == 100 : "; echo (array_sum([90,8,0.4,0.4,1.2]) == 100) ? 'true' : 'false';