<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How Can I combine multiple conditions and if it doesn't find to find in another condition in Survey123 connect? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-combine-multiple-conditions-and-if-it/m-p/775096#M4756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact, I have a form with different conditions. A person has to select or combine many questions by answering. Let's say a person has an age of 30 even above it and is positive and is responsible and is having diabete to say it qualifies Yes for an answer. Here you have to use and to combine not ot as it appears in NESTING IF Conditions. So if that condition is not the one he has answered by ticking let's say he is not responsible from above can give Yes as an answer. How to do nested if conditions with and by combining many things to give One answer if selected together not or as it is seemed for nested conditions and if not found to look up for another condition or to nest in other to give the same value for "Yes". Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2020 12:34:41 GMT</pubDate>
    <dc:creator>Alain_RolandMunyaneza</dc:creator>
    <dc:date>2020-09-23T12:34:41Z</dc:date>
    <item>
      <title>How Can I combine multiple conditions and if it doesn't find to find in another condition in Survey123 connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-combine-multiple-conditions-and-if-it/m-p/775096#M4756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact, I have a form with different conditions. A person has to select or combine many questions by answering. Let's say a person has an age of 30 even above it and is positive and is responsible and is having diabete to say it qualifies Yes for an answer. Here you have to use and to combine not ot as it appears in NESTING IF Conditions. So if that condition is not the one he has answered by ticking let's say he is not responsible from above can give Yes as an answer. How to do nested if conditions with and by combining many things to give One answer if selected together not or as it is seemed for nested conditions and if not found to look up for another condition or to nest in other to give the same value for "Yes". Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 12:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-combine-multiple-conditions-and-if-it/m-p/775096#M4756</guid>
      <dc:creator>Alain_RolandMunyaneza</dc:creator>
      <dc:date>2020-09-23T12:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I combine multiple conditions and if it doesn't find to find in another condition in Survey123 connect?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-combine-multiple-conditions-and-if-it/m-p/775097#M4757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;EM&gt;if&lt;/EM&gt; condition may help: &lt;A class="link-titled" href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/quickreferencecreatesurveys.htm" title="https://doc.arcgis.com/en/survey123/desktop/create-surveys/quickreferencecreatesurveys.htm"&gt;Quick reference—ArcGIS Survey123 | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(condition, a, b)&amp;nbsp; If true, returns a; otherwise, returns b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class=""&gt;if(selected(${question_one}, 'yes') and selected(${question_two}, 'yes'), 'yes', 'no')&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can nest if expressions. For example:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class=""&gt;if(selected(${question_one}, 'yes') and selected(${question_two}, 'yes'), 'yes', if(selected(${question_one}, 'yes') and selected(${question_three}, 'yes'), 'yes', 'no'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the XLSForm if condition can lead into very hard to read expressions quickly. Alternatively, using JavaScript syntax may help you build more complex conditions and keep the code more readable. &lt;A href="https://community.esri.com/groups/survey123/blog/2020/08/07/extending-survey123-smart-forms-with-custom-js-functions"&gt;https://community.esri.com/groups/survey123/blog/2020/08/07/extending-survey123-smart-forms-with-custom-js-functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 16:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-combine-multiple-conditions-and-if-it/m-p/775097#M4757</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2020-09-23T16:18:03Z</dc:date>
    </item>
  </channel>
</rss>

