<?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 'if' Statement Arguments Error in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-arguments-error/m-p/797114#M9709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I have a conditional statement calculation in my survey in that is returning an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"XPath evaluation: cannot handle function 'if' requires 3 arguments, Only 2 provided."&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see I have four, so I am stumped.&amp;nbsp; Your input is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${stoff}&amp;gt;1200,'EXT INFLUENCE',if(${stoff}&amp;gt;860,'PROTECTED',if(${stoff}&amp;gt;840,'MARGINAL',if(${stoff}&amp;lt;840,'UNPROTECTED'))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2018 15:39:04 GMT</pubDate>
    <dc:creator>RymaAneliunas1</dc:creator>
    <dc:date>2018-01-08T15:39:04Z</dc:date>
    <item>
      <title>'if' Statement Arguments Error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-arguments-error/m-p/797114#M9709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I have a conditional statement calculation in my survey in that is returning an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"XPath evaluation: cannot handle function 'if' requires 3 arguments, Only 2 provided."&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see I have four, so I am stumped.&amp;nbsp; Your input is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${stoff}&amp;gt;1200,'EXT INFLUENCE',if(${stoff}&amp;gt;860,'PROTECTED',if(${stoff}&amp;gt;840,'MARGINAL',if(${stoff}&amp;lt;840,'UNPROTECTED'))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-arguments-error/m-p/797114#M9709</guid>
      <dc:creator>RymaAneliunas1</dc:creator>
      <dc:date>2018-01-08T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: 'if' Statement Arguments Error</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-arguments-error/m-p/797115#M9710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your innermost if statement will need a value if false (that's the 3rd value the error mentions). &amp;nbsp;It looks like the evaluation can be simplified to 3 if statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if(${stoff}&amp;gt;1200,'EXT INFLUENCE',if(${stoff}&amp;gt;860,'PROTECTED',if(${stoff}&amp;gt;840,'MARGINAL','UNPROTECTED')))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 17:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-arguments-error/m-p/797115#M9710</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-01-08T17:46:01Z</dc:date>
    </item>
  </channel>
</rss>

