- Posts: 11
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
sum(A25_A25A4.NAOK, A25_A25A5.NAOK, A25_A25A6.NAOK, A25_A25A7.NAOK, A25_A25A8.NAOK, A25_A25A9.NAOK) < 13
{if(sum(A25_A25A4.NAOK, A25_A25A5.NAOK, A25_A25A6.NAOK, A25_A25A7.NAOK, A25_A25A8.NAOK, A25_A25A9.NAOK) < 13, "This is the text that should be displayed if the sume is < 13", "this is the text that should be displayed if the sum is 13 or more")}
sum(A25_A25A4.NAOK, A25_A25A5.NAOK, A25_A25A6.NAOK, A25_A25A7.NAOK, A25_A25A8.NAOK, A25_A25A9.NAOK) < 13
if(sum(...) < 10; "This sum is smaller than 10"; if(sum(...) > 15; "This sum is bigger than 15"; "This sum is between 10 and 15"))
if(sum(...) < 10; "This sum is smaller than 10"; "") --> This will only write a text if the test is true. Else it will return an empty string. if(sum(...) > 15; "This sum is bigger than 15"; "")
if(sum(...) < 10 OR > 15; "This sum is either smaller than 10 or bigger than 15"; "This sum is between 10 and 15").
sum(question.naok,...) <10 OR sum(question.naok,...) >15
if(condition, returned result if condition == true, returned result if condition != true)
{if(sum(A19_A19A.NAOK, A19_A19B.NAOK, A19_A19C.NAOK, A19_A19D.NAOK, A19_A19E.NAOK) < 11, 'Text if sum less than 11', if(sum(A19_A19A.NAOK, A19_A19B.NAOK, A19_A19C.NAOK, A19_A19D.NAOK, A19_A19E.NAOK) < 15, 'Text if sum less than 15', 'Text if neither condition is true'))}