<?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: calculate values in an if statement in survey 123 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-values-in-an-if-statement-in-survey-123/m-p/785263#M6957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked! Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2019 13:08:53 GMT</pubDate>
    <dc:creator>GrantHaynes</dc:creator>
    <dc:date>2019-03-14T13:08:53Z</dc:date>
    <item>
      <title>calculate values in an if statement in survey 123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-values-in-an-if-statement-in-survey-123/m-p/785261#M6955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to write a simple if statement in a survey123 form that will perform a calculation if the condition is true and perform a different calculation if the condition is false. It places a string of junk in the calculated field, instead of calculated values, if I remove the calculations the if statement works just fine. Can anyone help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE height="180" width="843"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-size: 10pt; color: black; font-weight: 400; text-decoration: none; border-top: 0.5pt solid #9bbb59; border-right: none; border-bottom: none; border-left: none; width: 835px;"&gt;if(${Static_Water_Level}&amp;lt;(${Installed_Depth} - ${Screen_Height}), ${Installed_Depth} - (${Screen_Height}div2), ${Static_Water_Level} + ((${Installed_Depth} -${Static_Water_Level})div2))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 19:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-values-in-an-if-statement-in-survey-123/m-p/785261#M6955</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2019-03-13T19:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculate values in an if statement in survey 123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-values-in-an-if-statement-in-survey-123/m-p/785262#M6956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like there are no spaces in the calculations - you should separate parts by space (i.e.,&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;EM style="color: #000000;"&gt;${Screen_Height}div2&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt; &amp;nbsp;should be&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="color: #000000;"&gt;${Screen_Height} div 2&lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt; ). &amp;nbsp;That allows&amp;nbsp;&lt;SPAN style="caret-color: #000000;"&gt;calculations&lt;/SPAN&gt;&amp;nbsp;to work in my testing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 20:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-values-in-an-if-statement-in-survey-123/m-p/785262#M6956</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-03-13T20:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: calculate values in an if statement in survey 123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-values-in-an-if-statement-in-survey-123/m-p/785263#M6957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked! Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 13:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-values-in-an-if-statement-in-survey-123/m-p/785263#M6957</guid>
      <dc:creator>GrantHaynes</dc:creator>
      <dc:date>2019-03-14T13:08:53Z</dc:date>
    </item>
  </channel>
</rss>

