<?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: if in Calculation in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771281#M3851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you have an extra ( in there now&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if(${tonnage_pct}&amp;lt;5 AND &lt;STRONG&gt;(&lt;/STRONG&gt;${temps_transport}&amp;lt;240,'oui','non')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;should be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if(${tonnage_pct}&amp;lt;5 AND ${temps_transport}&amp;lt;240,'oui','non')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;But if you want it to be oui if either is true then you need to use an or not an and.&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>Fri, 14 Aug 2020 16:24:57 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2020-08-14T16:24:57Z</dc:date>
    <item>
      <title>if in Calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771278#M3848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;anyone for what is wrong with this equation in a survey123 Calculation column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${tonnage_pct}&amp;lt;5, if(${temps_transport}&amp;lt;240,'oui','non'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771278#M3848</guid>
      <dc:creator>ReneAubut</dc:creator>
      <dc:date>2020-08-13T20:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: if in Calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771279#M3849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/321004"&gt;Rene Aubut&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters of the if() function are if(&amp;lt;condition&amp;gt;,&amp;lt;return X if condition is met&amp;gt;,&amp;lt;otherwise return Y&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use this link for reference:&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—ArcGIS Survey123 | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your condition are you trying to say if ${tonnage_pct}&amp;lt;5 AND ${tems_transport}&amp;lt;240 return 'oui' otherwise return 'non', or are you trying to say&amp;nbsp;&lt;SPAN&gt;if ${tonnage_pct}&amp;lt;5 OR ${tems_transport}&amp;lt;240 return 'oui' otherwise return 'non'?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Zach&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 21:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771279#M3849</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2020-08-13T21:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: if in Calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771280#M3850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Zach. I need both conditions to return true. My difficulty with the IF syntax is when I have to check for more than one condition. With one condition it is straightforward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried without success&lt;/P&gt;&lt;P&gt;if(${tonnage_pct}&amp;lt;5 AND (${temps_transport}&amp;lt;240,'oui','non')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where tonnage_c is Decimal type and temps_transport is Integer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771280#M3850</guid>
      <dc:creator>ReneAubut</dc:creator>
      <dc:date>2020-08-14T11:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: if in Calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771281#M3851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you have an extra ( in there now&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if(${tonnage_pct}&amp;lt;5 AND &lt;STRONG&gt;(&lt;/STRONG&gt;${temps_transport}&amp;lt;240,'oui','non')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;should be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if(${tonnage_pct}&amp;lt;5 AND ${temps_transport}&amp;lt;240,'oui','non')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;But if you want it to be oui if either is true then you need to use an or not an and.&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>Fri, 14 Aug 2020 16:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-in-calculation/m-p/771281#M3851</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-08-14T16:24:57Z</dc:date>
    </item>
  </channel>
</rss>

