<?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 Re: Survey123 If And statement in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-and-statement/m-p/768582#M3121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first option worked great! Exactly what I was looking for!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2020 01:47:03 GMT</pubDate>
    <dc:creator>CA_SC_-_MarkSchug__GISS_</dc:creator>
    <dc:date>2020-10-08T01:47:03Z</dc:date>
    <item>
      <title>Survey123 If And statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-and-statement/m-p/768580#M3119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Survey123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am struggling with the if and statement for the calculation field... not sure if that is what it is called.&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my choice list, I need to&amp;nbsp;populate a RiskLevel field based on the choices from the table below&lt;/P&gt;&lt;P&gt;like&amp;nbsp;&lt;SPAN&gt;if VARMAGNITUDE=Minor and VARRISKPRELIM=Unlikely RiskLevel=Very Low&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or if VARMAGNITUDE=Major and VARRISKPRELIM=VeryLikely&amp;nbsp; RiskLevel=Very High&amp;nbsp;&lt;/P&gt;&lt;P&gt;... there are 12 potential outputs.&lt;/P&gt;&lt;P&gt;Choice sheet&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/508928_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Risk Level&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/508929_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-and-statement/m-p/768580#M3119</guid>
      <dc:creator>CA_SC_-_MarkSchug__GISS_</dc:creator>
      <dc:date>2020-09-29T22:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 If And statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-and-statement/m-p/768581#M3120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/397033"&gt;CA SC - Mark Schug (GISS)&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple ways you can go about this, one option that I was testing was to nest all the if() statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example this is a statement that does all of the combinations in the Major magnitude of consequences column:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(selected(${mag}, 'major') and selected(${risk}, 'vlikely'), 'Very High', if(selected(${mag}, 'major') and selected(${risk}, 'likely'), 'Very High', if(selected(${mag}, 'major') and selected(${risk}, 'possible'), 'High',if(selected(${mag}, 'major') and selected(${risk}, 'unlikely'), 'Intermediate',''))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the last single quotes are in the statement is where the expression can continue to add the rest of the combinations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option would be to split them into their own calculate question and then at the end do something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;${cal} or ${cal2} or ${cal3} etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;this link&lt;/A&gt; for reference regarding the if() function in ArcGIS Survey123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2020 22:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-and-statement/m-p/768581#M3120</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2020-10-01T22:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 If And statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-and-statement/m-p/768582#M3121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first option worked great! Exactly what I was looking for!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2020 01:47:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-if-and-statement/m-p/768582#M3121</guid>
      <dc:creator>CA_SC_-_MarkSchug__GISS_</dc:creator>
      <dc:date>2020-10-08T01:47:03Z</dc:date>
    </item>
  </channel>
</rss>

