<?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: Nested If/Then statement error in Survey123 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-then-statement-error-in-survey123/m-p/1125558#M39228</link>
    <description>&lt;P&gt;That was it!!&lt;/P&gt;&lt;P&gt;Yes, the problems were "If," "&amp;lt;," "&amp;gt;," and "-" ....changed to "if," "less," "grt," and "to"&lt;/P&gt;&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 20:04:15 GMT</pubDate>
    <dc:creator>EileenWeppner</dc:creator>
    <dc:date>2021-12-13T20:04:15Z</dc:date>
    <item>
      <title>Nested If/Then statement error in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-then-statement-error-in-survey123/m-p/1125515#M39224</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am working in Survey123 and I need some help with an If/Then statement. I am getting the following error when trying to convert the XLSForm:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B”ODK Validate Errors:\n&amp;gt;&amp;gt;Something broke the parser. See above for a hint.\nError evaluating field ‘leftcbavgheightnum’: The problem was located in calculate expression for ${leftcbavgheightnum}\nXPath evaluation: cannot handle function ‘If’\nCaused by: org.javarosa.xpath.XPathUnhandledException: The problem was located in calculate expression for ${leftcbavgheightnum}\nXPath evaluation: cannot handle function ‘If’\n\t… 10 more\n\nResult: Invalid”&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here is the calculation (If/Then statement) I wrote:&lt;/P&gt;&lt;P&gt;If(selected(${leftcutbankheight},'0'),0,If(selected(${leftcutbankheight},'&amp;lt;5'),2.5,If(selected(${leftcutbankheight},'6-10'),8,If(selected(${leftcutbankheight},'11-25'),18,If(selected(${leftcutbankheight},'&amp;gt;25'),25,0)))))&lt;/P&gt;&lt;P&gt;{leftcutbankheight} is a select one/text field&lt;/P&gt;&lt;P&gt;The result of the If/Then statement is a numeric decimal field ({leftcbavgheightnum}).&lt;/P&gt;&lt;P&gt;I am pretty new at Survey123. Any help would be much appreciated!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Eileen&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 18:34:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-then-statement-error-in-survey123/m-p/1125515#M39224</guid>
      <dc:creator>EileenWeppner</dc:creator>
      <dc:date>2021-12-13T18:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If/Then statement error in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-then-statement-error-in-survey123/m-p/1125553#M39226</link>
      <description>&lt;P&gt;My first guess is if should be lowercase.&amp;nbsp; So if not If.&amp;nbsp; It almost seems like that is what the error is saying.&lt;/P&gt;&lt;P&gt;The second guess is it thinks &amp;lt;5 is HTML.&lt;/P&gt;&lt;P&gt;Try that.&amp;nbsp; Hope it works.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 19:40:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-then-statement-error-in-survey123/m-p/1125553#M39226</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-12-13T19:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If/Then statement error in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-then-statement-error-in-survey123/m-p/1125558#M39228</link>
      <description>&lt;P&gt;That was it!!&lt;/P&gt;&lt;P&gt;Yes, the problems were "If," "&amp;lt;," "&amp;gt;," and "-" ....changed to "if," "less," "grt," and "to"&lt;/P&gt;&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 20:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-then-statement-error-in-survey123/m-p/1125558#M39228</guid>
      <dc:creator>EileenWeppner</dc:creator>
      <dc:date>2021-12-13T20:04:15Z</dc:date>
    </item>
  </channel>
</rss>

