<?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: How to use &amp;quot;if&amp;quot; and &amp;quot;then&amp;quot; on survey 123? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837667#M20090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried this way:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if(${totalbrocasha}&amp;gt;6000,22,if(${totalbrocasha}&amp;lt;=5999&amp;gt;=4000,16,if(${totalbrocasha}&amp;lt;=3999&amp;gt;=3000,12,if(${totalbrocasha}&amp;lt;=2999&amp;gt;=400,8,0))))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But the result is aways "0".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 19:19:56 GMT</pubDate>
    <dc:creator>Marcos_AntonioLima_Rios</dc:creator>
    <dc:date>2018-05-09T19:19:56Z</dc:date>
    <item>
      <title>How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837664#M20087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, guys. First of all sorry for my poor english.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know how to use "if" and "then" to set a value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Exemple:&lt;/P&gt;&lt;P&gt;I have a fild that need to display a value to the user:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;If (totalbrocasha "greater than" 3000 then coposliberar "equal" 12)&amp;nbsp;&lt;IMG __jive_id="406109" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/406109_Capturar.JPG" /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 12:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837664#M20087</guid>
      <dc:creator>Marcos_AntonioLima_Rios</dc:creator>
      <dc:date>2018-05-09T12:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837665#M20088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following expression will return 12 if &lt;EM&gt;totalbrocasha&lt;/EM&gt; is greater than 3000 and otherwise, it will return 0.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (${totalbrocasha}&amp;gt;3000,12,0)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can use this expression in the &lt;EM&gt;calculation&lt;/EM&gt; column of the &lt;EM&gt;coposliberar&lt;/EM&gt; question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A class="link-titled" href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/quickreferencecreatesurveys.htm" title="https://doc.arcgis.com/en/survey123/desktop/create-surveys/quickreferencecreatesurveys.htm"&gt;Quick reference—Survey123 for ArcGIS | ArcGIS&lt;/A&gt; is a great topic to learn all the things you can do with formulas in XLSForms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 13:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837665#M20088</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2018-05-09T13:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837666#M20089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice, it's works. Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have&amp;nbsp;one last doubt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;And if I have more arguments?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;For exemple:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if &lt;STRONG&gt;&lt;EM&gt;totalbrocasha&lt;/EM&gt;&lt;/STRONG&gt; &amp;lt;= 399 then &lt;STRONG&gt;&lt;EM&gt;coposliberar &lt;/EM&gt;&lt;/STRONG&gt;need to be 0&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;totalbrocasha&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;&lt;/SPAN&gt;= 400 and &amp;lt;= 2999 then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;coposliberar&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;need to be 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;totalbrocasha&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;&lt;/SPAN&gt;= 3000 and &amp;lt;= 3999 then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;coposliberar&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;need to be 12&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;totalbrocasha&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;&lt;/SPAN&gt;= 4000 and &amp;lt;= 5999 then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;coposliberar&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;need to be 18&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and finally&amp;nbsp;if&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;totalbrocasha&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;&lt;/SPAN&gt;= 6000 then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;coposliberar&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;need to be 22&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 14:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837666#M20089</guid>
      <dc:creator>Marcos_AntonioLima_Rios</dc:creator>
      <dc:date>2018-05-09T14:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837667#M20090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried this way:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if(${totalbrocasha}&amp;gt;6000,22,if(${totalbrocasha}&amp;lt;=5999&amp;gt;=4000,16,if(${totalbrocasha}&amp;lt;=3999&amp;gt;=3000,12,if(${totalbrocasha}&amp;lt;=2999&amp;gt;=400,8,0))))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But the result is aways "0".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 19:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837667#M20090</guid>
      <dc:creator>Marcos_AntonioLima_Rios</dc:creator>
      <dc:date>2018-05-09T19:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837668#M20091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nested if statements are really tough sometimes.&amp;nbsp; These are a lot like what is used in attribute assistant:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-all-methods/" title="http://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-all-methods/"&gt;All methods - Attribute Assistant | ArcGIS Solutions&lt;/A&gt;&amp;nbsp; (scroll down to additional functions).&amp;nbsp; I suggest working with your statements one at a time, adding as you go.&amp;nbsp; See:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/thread/183208-iif-function-in-dynamic-value-table"&gt;https://community.esri.com/thread/183208-iif-function-in-dynamic-value-table&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 19:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837668#M20091</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-05-09T19:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837669#M20092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help, Joe.&lt;/P&gt;&lt;P&gt;I've tried the solution that works for&amp;nbsp;&lt;A href="https://community.esri.com/thread/183208"&gt;IIF function in Dynamic Value table&lt;/A&gt;&amp;nbsp;(using &lt;SPAN style="background-color: #ffffff;"&gt;0, Null, &amp;lt;Null&amp;gt;, 00, "", [#] and "Nothing", like Jennifer Stone did&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;But I still receiving only 22 or 0 as a final result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 20:27:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837669#M20092</guid>
      <dc:creator>Marcos_AntonioLima_Rios</dc:creator>
      <dc:date>2018-05-09T20:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837670#M20093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could provide more help but I'm just not that good with xls expressions.&amp;nbsp; That said, does you data coupled with your logic support any other results than 22 or 0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 21:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837670#M20093</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-05-09T21:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837671#M20094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your evaluations for the if() functions after the first will not work - what you are trying to do would require a compound statement (i.e., &lt;SPAN style="background-color: #f6f6f6;"&gt;${totalbrocasha}&amp;lt;=5999 and&amp;nbsp;&lt;SPAN&gt;${totalbrocasha}&amp;gt;=4000&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;). &amp;nbsp;That being said, with a nested structure like this, you don't need one side of the limit - it's already taken care of by the previous statement (i.e., the &amp;lt;=5999 is unnecessary as you already have caught all values larger with the first evaluation &amp;gt;=6000 ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 21:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837671#M20094</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-05-09T21:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837672#M20095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. I followed your advice:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;"I suggest working with your statements one at a time, adding as you go."&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And it works! I&amp;nbsp;appreciate your help.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 12:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837672#M20095</guid>
      <dc:creator>Marcos_AntonioLima_Rios</dc:creator>
      <dc:date>2018-05-10T12:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "if" and "then" on survey 123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837673#M20096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 12:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-use-quot-if-quot-and-quot-then-quot-on/m-p/837673#M20096</guid>
      <dc:creator>Marcos_AntonioLima_Rios</dc:creator>
      <dc:date>2018-05-10T12:07:12Z</dc:date>
    </item>
  </channel>
</rss>

