<?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: 'when' statement calculation help in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/when-statement-calculation-help/m-p/1621674#M62912</link>
    <description>&lt;P&gt;I got it to work!&amp;nbsp;&lt;BR /&gt;I realized I was missing a bracket.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":persevering_face:"&gt;😣&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if($&lt;FONT color="#FF0000"&gt;{&lt;/FONT&gt;gradeSum} &amp;lt; 1, 'F',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if((${gradeSum} &amp;gt;= 1) and (${gradeSum} &amp;lt; 2 ), 'D',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if((${gradeSum} &amp;gt;= 2) and (${gradeSum} &amp;lt; 3), 'C',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if((${gradeSum} &amp;gt;= 3) and (${gradeSum} &amp;lt; 4), 'B',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'A'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 22:11:36 GMT</pubDate>
    <dc:creator>amanda_stanko</dc:creator>
    <dc:date>2025-06-06T22:11:36Z</dc:date>
    <item>
      <title>'when' statement calculation help</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/when-statement-calculation-help/m-p/1621671#M62911</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;I'm struggling with this 'when' statement in Survey123 XLSForm.&lt;/P&gt;&lt;P&gt;The form averages input from the questions to get a final score. The part I'm struggling with is converting the score to a letter grade.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've tried many derivatives of this, or with 'if' statements. It all keeps failing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when(${gradeSum} &amp;lt; 1, 'F', (${gradeSum}&amp;gt;= 1 and ${gradeSum} &amp;lt; 2), 'D', (${gradeSum}&amp;gt;= 2 and ${gradeSum} &amp;lt; 3), 'C', (${gradeSum}&amp;gt;= 3 and ${gradeSum} &amp;lt; 4), 'B','A')&lt;/P&gt;&lt;P&gt;I've also tried this, and it doesn't work.&lt;/P&gt;&lt;P&gt;if($gradeSum} &amp;lt; 1, 'F',&lt;BR /&gt;if((${gradeSum} &amp;gt;= 1) and (${gradeSum} &amp;lt; 2 ), 'D',&lt;BR /&gt;if((${gradeSum} &amp;gt;= 2) and (${gradeSum} &amp;lt; 3), 'C',&lt;BR /&gt;if((${gradeSum} &amp;gt;= 3) and (${gradeSum} &amp;lt; 4), 'B',&lt;BR /&gt;'A'&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XLSForm attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 21:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/when-statement-calculation-help/m-p/1621671#M62911</guid>
      <dc:creator>amanda_stanko</dc:creator>
      <dc:date>2025-06-06T21:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: 'when' statement calculation help</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/when-statement-calculation-help/m-p/1621674#M62912</link>
      <description>&lt;P&gt;I got it to work!&amp;nbsp;&lt;BR /&gt;I realized I was missing a bracket.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":persevering_face:"&gt;😣&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if($&lt;FONT color="#FF0000"&gt;{&lt;/FONT&gt;gradeSum} &amp;lt; 1, 'F',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if((${gradeSum} &amp;gt;= 1) and (${gradeSum} &amp;lt; 2 ), 'D',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if((${gradeSum} &amp;gt;= 2) and (${gradeSum} &amp;lt; 3), 'C',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if((${gradeSum} &amp;gt;= 3) and (${gradeSum} &amp;lt; 4), 'B',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'A'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 22:11:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/when-statement-calculation-help/m-p/1621674#M62912</guid>
      <dc:creator>amanda_stanko</dc:creator>
      <dc:date>2025-06-06T22:11:36Z</dc:date>
    </item>
  </channel>
</rss>

