<?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 Survey123 Connect Nested Formula for Values in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-nested-formula-for-values/m-p/825867#M17014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I have a fairly straight forward nested 'if' statement here, but I'm missing something as I keep receiving errors. Any help would be appreciated. Thanks! Any thoughts&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression within a calculate field type. The field name is&amp;nbsp;{risk_rating_calculate}:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${percent_rating}&amp;gt;=80,'SUSTAINABLE', if(${percent_rating}&amp;lt;80 and &amp;gt;=50,'AT RISK', if(${percent_rating}&amp;lt;50,'NOT SUSTAINABLE','')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error being thrown is this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Survey123 Connect Nested If Statement error" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/502585_Survey123_Error.png" /&gt;&lt;/P&gt;&lt;P&gt;{percent_rating} is an integer field that references a previous calculate expression (see attachment screenshot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Corey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2020 20:08:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-08-06T20:08:14Z</dc:date>
    <item>
      <title>Survey123 Connect Nested Formula for Values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-nested-formula-for-values/m-p/825867#M17014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I have a fairly straight forward nested 'if' statement here, but I'm missing something as I keep receiving errors. Any help would be appreciated. Thanks! Any thoughts&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression within a calculate field type. The field name is&amp;nbsp;{risk_rating_calculate}:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${percent_rating}&amp;gt;=80,'SUSTAINABLE', if(${percent_rating}&amp;lt;80 and &amp;gt;=50,'AT RISK', if(${percent_rating}&amp;lt;50,'NOT SUSTAINABLE','')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error being thrown is this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Survey123 Connect Nested If Statement error" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/502585_Survey123_Error.png" /&gt;&lt;/P&gt;&lt;P&gt;{percent_rating} is an integer field that references a previous calculate expression (see attachment screenshot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Corey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 20:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-nested-formula-for-values/m-p/825867#M17014</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-06T20:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect Nested Formula for Values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-nested-formula-for-values/m-p/825868#M17015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to come up a lot.&amp;nbsp; With an and or or you have to give it the entire expression with field name not just a second value.&amp;nbsp; You can combine anything not just multiple values so need to be explicit.&amp;nbsp; Also you do not need the last if since it is the only option left (unless you have something else going on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if(${percent_rating}&amp;gt;=80,'SUSTAINABLE', if(${percent_rating}&amp;lt;80 and&amp;nbsp;&lt;STRONG&gt;${percent_rating}&lt;/STRONG&gt; &amp;gt;=50,'AT RISK', 'NOT SUSTAINABLE'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 23:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-nested-formula-for-values/m-p/825868#M17015</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-08-06T23:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Connect Nested Formula for Values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-nested-formula-for-values/m-p/825869#M17016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, &lt;A href="https://community.esri.com/migrated-users/12477"&gt;Doug Browning&lt;/A&gt;! This works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just the answer I was looking for. Thank you for your insight regarding this expression and your quick response! I was running into a wall on this one and you saved me some valuable time. Much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Corey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:52:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-connect-nested-formula-for-values/m-p/825869#M17016</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-07T14:52:00Z</dc:date>
    </item>
  </channel>
</rss>

