<?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: Help with nested if statement in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228820#M45876</link>
    <description>&lt;P&gt;In XLS, the general practice is to nest additional conditions in the last parameter of the preceding condition. The order matters, so make sure the most important condition is checked first.&lt;/P&gt;&lt;PRE&gt;if(condition, 'result', if(condition2, 'result2', if(condition3, 'result3', '')))&lt;/PRE&gt;&lt;P&gt;Using "or" is going to return a boolean, which is why you see true / false.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 16:49:16 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-11-04T16:49:16Z</dc:date>
    <item>
      <title>Help with nested if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228795#M45873</link>
      <description>&lt;P&gt;Hello all! I am in need of help with understanding how to create a nested if statement. I have 3 statements:&lt;/P&gt;&lt;P&gt;if(${FIA1_Pass} = 'Pass','&amp;lt;font color="green"&amp;gt;Pass&amp;lt;/font&amp;gt;','')&lt;/P&gt;&lt;P&gt;if(${FIA1_Incorrect_Calc} &amp;gt;= 4,'&amp;lt;font color="red"&amp;gt;Fail&amp;lt;/font&amp;gt;','')&lt;/P&gt;&lt;P&gt;if(string-length(${Firm_Name_FIA1})=0, 'Incomplete','')&lt;/P&gt;&lt;P&gt;Currently I have them all in 1 calculation using the "or" function, and it works as I would expect in connect, however in my dashboard it appears as "true" or "false." I'm assuming I need to nest my if statement, correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 16:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228795#M45873</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-11-04T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with nested if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228816#M45874</link>
      <description>&lt;P&gt;You've posted in the Survey123 space, but it sounds like you're trying to use this expression in Dashboards in some way? Can you clarify how you're trying to implement this expression?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 16:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228816#M45874</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-11-04T16:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with nested if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228817#M45875</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;I'm using it in my XLS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 16:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228817#M45875</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-11-04T16:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with nested if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228820#M45876</link>
      <description>&lt;P&gt;In XLS, the general practice is to nest additional conditions in the last parameter of the preceding condition. The order matters, so make sure the most important condition is checked first.&lt;/P&gt;&lt;PRE&gt;if(condition, 'result', if(condition2, 'result2', if(condition3, 'result3', '')))&lt;/PRE&gt;&lt;P&gt;Using "or" is going to return a boolean, which is why you see true / false.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 16:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228820#M45876</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-11-04T16:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with nested if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228830#M45878</link>
      <description>&lt;P&gt;This was very helpful, thank you! I was able to get it working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: It's partially working. In connect, it functions as expected, however in my dashboard, nothing is displayed.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 17:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228830#M45878</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-11-04T17:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with nested if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228842#M45881</link>
      <description>&lt;P&gt;When choosing the order...&lt;/P&gt;&lt;P&gt;If the first conditions evaluates to true, then the expression stop evaluation at that point correct? So the only way the last expression will be evaluated is if the first two are false? Is that correct?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 17:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-with-nested-if-statement/m-p/1228842#M45881</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-11-04T17:38:32Z</dc:date>
    </item>
  </channel>
</rss>

