Trying to create a report in Survey 123 with if/and statement

890
2
Jump to solution
12-02-2020 11:17 AM
Marie-JoëlleDesgagné
New Contributor III

Hi, I am trying to produce a survey 123 report with a word template. Let's say I have those questions:

${a}

${b}

${c}

For every questions, the anwers can be the capital letter of the question or zero (0). I would like to make a conditional statement: if the answer of question a et 0 AND the answer of question b is 0 AND the answer of question c is 0, print "No answer".

Is that possible? Thank you in advance !

0 Kudos
1 Solution

Accepted Solutions
BarbaraWebster1
Esri Regular Contributor

Hi Marie-Joëlle,

You could try some thing like this for your feature report.

${if (a==0 && b==0 && c==0)}
No Answer
${/}


The Conditional Elements section of the Survey123 Report Templates Documentation  has some good information on this as well.

Thanks,
-Barbara

View solution in original post

2 Replies
BarbaraWebster1
Esri Regular Contributor

Hi Marie-Joëlle,

You could try some thing like this for your feature report.

${if (a==0 && b==0 && c==0)}
No Answer
${/}


The Conditional Elements section of the Survey123 Report Templates Documentation  has some good information on this as well.

Thanks,
-Barbara

Marie-JoëlleDesgagné
New Contributor III

Thank you very much Barbara, 

That's exactly what I needed. 

0 Kudos