- Posts: 10
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
and this seems to be if there is a prothesis either in the upper or lower jaw(count(that.q00Btest) != 32 && (prot01.NAOK == 2 || prot01.NAOK == 3) && (prot02.NAOK == 2 || prot02.NAOK == 3))
But it is also TRUE if the patient doesn't have any or a vollegige.(count(that.q00Btest) != 16 && (prot01.NAOK != 2 && prot01.NAOK != 3 || prot02.NAOK != 2 && prot02.NAOK != 3))
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
When I apply this group condition and check all options for question q00Btest and q00Ctest (relevance=1 and count=16), group Q00Dtest is still shown as an empty group. So the Group is shown whereas the question (q00Dtest) is hidden. Any idea how that is possible? There is no condition set on the question.(
(
sum(q00Dtest_Y001_X001.relevanceStatus, q00Dtest_Y002_X001.relevanceStatus) == 1
&& count(that.q00Btest.NAOK, that.q00Ctest.NAOK) != 16
)
||
(
sum(q00Dtest_Y001_X001.relevanceStatus, q00Dtest_Y002_X001.relevanceStatus) == 2
&& count(that.q00Btest.NAOK, that.q00Ctest.NAOK) != 32
)
||
(
(!is_empty(pat02a.NAOK) && (pat02a.NAOK == 2 || pat02a.NAOK == 3 || pat02a.NAOK == 4 || pat02a.NAOK == 5))
||
(!is_empty(pat02b.NAOK) && (pat02b.NAOK == 2 || pat02b.NAOK == 3 || pat02b.NAOK == 4 || pat02b.NAOK == 5 || pat02b.NAOK == 6 || pat02b.NAOK == 7))
)
)
&&
!(
(
sum(q00Dtest_Y001_X001.relevanceStatus, q00Dtest_Y002_X001.relevanceStatus) == 1
&& count(that.q00Btest.NAOK, that.q00Ctest.NAOK) == 16
)
||
(
sum(q00Dtest_Y001_X001.relevanceStatus, q00Dtest_Y002_X001.relevanceStatus) == 2
&& count(that.q00Btest.NAOK, that.q00Ctest.NAOK) == 32
)
Please Log in to join the conversation.
The count() function in LimeSurvey apparently expects a single array as its argument. If you provide multiple arguments, it leads to strange results. But if you use a separate count for each array and add them together, it works just fine:count(that.q00Btest.NAOK, that.q00Ctest.NAOK)
Now I just have to set this up for all 13 arrays(count(that.q00Btest.NAOK) + count(that.q00Ctest.NAOK))
Please Log in to join the conversation.
Please Log in to join the conversation.