Select to view content in your preferred language

Survey123 Report if or statements

523
1
Jump to solution
10-05-2023 05:46 AM
Eimear
by
New Contributor III

Hi there,

I having a problem creating an if or statement with multiple questions. Each question is a "select_one" type. 

If a defined answer (yes or no) is selected in any of the four questions, I want to display the words "No Comments". I've tried a lot of variations, one example below:

${if question1==“No”} or ${if question2!==“No”} or ${if question3==“Yes”} or ${if question4==“No”} No Comments${/}${/}${/}${/}.

 

The "or" statement seems to be not recognised. Any help greatly appreciated.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Eimear
by
New Contributor III

I found the solution thanks to a post by  @Katie_Clark : https://community.esri.com/t5/arcgis-survey123-questions/survey-123-report-template-syntax-for-if-fu... 

Solution:

${if question1==“No” || question2!==“No”} || question3==“Yes”}  || question4==“No”} No Comments${/}

View solution in original post

1 Reply
Eimear
by
New Contributor III

I found the solution thanks to a post by  @Katie_Clark : https://community.esri.com/t5/arcgis-survey123-questions/survey-123-report-template-syntax-for-if-fu... 

Solution:

${if question1==“No” || question2!==“No”} || question3==“Yes”}  || question4==“No”} No Comments${/}