<?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: Using an IF statement in calculations in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/using-an-if-statement-in-calculations/m-p/1352130#M52999</link>
    <description>&lt;P&gt;I think the easiest way is to just make 2 different note fields.&amp;nbsp; One for each side of the but.&amp;nbsp; Have you tried that?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 18:18:33 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2023-11-21T18:18:33Z</dc:date>
    <item>
      <title>Using an IF statement in calculations</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-an-if-statement-in-calculations/m-p/1352122#M52998</link>
      <description>&lt;P&gt;I have a select one question in my survey and depending on which one is selected, I'd like to present the user a message.&lt;/P&gt;&lt;P&gt;I have created a text field where I am performing a calculation using an IF statement.&lt;/P&gt;&lt;P&gt;The trouble is, I would like to use a BUT, but I don't know what the syntax is for that - even if it is possible.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(${header_mode}='new' and ${Flight_Status}='Post-Flight','You must complete the Pre-Flight Checklist before selecting Post-Flight','Please complete the Pre-Flight Checklist in its entirety')&lt;/EM&gt; &lt;STRONG&gt;BUT&lt;/STRONG&gt; &lt;EM&gt;(if(${header_mode}='edit' and ${Flight_Status}='Pre-Flight','The Pre-Flight Checklist has been completed, please complete the Post-Flight Checklist',''))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The first part of the IF statement works, but when I edit an existing survey, it doesn't execute the second IF statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 18:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-an-if-statement-in-calculations/m-p/1352122#M52998</guid>
      <dc:creator>CamKenny2</dc:creator>
      <dc:date>2023-11-21T18:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using an IF statement in calculations</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-an-if-statement-in-calculations/m-p/1352130#M52999</link>
      <description>&lt;P&gt;I think the easiest way is to just make 2 different note fields.&amp;nbsp; One for each side of the but.&amp;nbsp; Have you tried that?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 18:18:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-an-if-statement-in-calculations/m-p/1352130#M52999</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-11-21T18:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using an IF statement in calculations</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-an-if-statement-in-calculations/m-p/1352312#M53004</link>
      <description>&lt;P&gt;I'll second what Doug said, although if you want to do everything in a single field you could use&amp;nbsp;&lt;EM&gt;or&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;as the operator.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_276FB773E7E2442EB81831714B08660D" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_276FB773E7E2442EB81831714B08660D&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 22:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-an-if-statement-in-calculations/m-p/1352312#M53004</guid>
      <dc:creator>rwrenner_esri</dc:creator>
      <dc:date>2023-11-21T22:04:11Z</dc:date>
    </item>
  </channel>
</rss>

