creating an "and" condition

Mehr
1 Woche 2 Tage her #173907 von yohay
yohay erstellte das Thema creating an "and" condition
Hi,
I have a question which need to be shown based on a value from a previous answer
The logic is :
only show this question if answer is not "A" and answer is not "b"

I understand that I can't create a condition with an "AND" logic if it's based on the same question (only an "OR" condition can be set) so I've created an equation instead with an AND logic instead of an OR.
But now the question is hidden no matter what.

Can anyone have an idea why this is happened?

this is the equation:

((quest.NAOK != "ans1")) AND ((quest.NAOK != "ans2"))




Thanks in advance

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 1 Tag her #173914 von DenisChenu
DenisChenu antwortete auf das Thema: creating an "and" condition
Seems OK for me …

screenshot of Question Logic file ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Woche 1 Tag her #173917 von Joffm
Joffm antwortete auf das Thema: creating an "and" condition
Hi,
just to explain:

In the condition manager you have to create a new scenario to do this.

But nowadays - since we have the Expression Manager - it's a lot easier.

You created an question of type equation. Why? And it doesn't work?
Unless you do not show us exactly what you did, we cannot help.

But you do not need the equation.
Just enter your condition in the Relevance equation of the question.
So, if Q2 is only displayed if (Q1!=1 AND Q1!=2), enter this in the Relevance equation of Q2.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha