<?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: Conditional Answers in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-answers/m-p/1244676#M46749</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/643106"&gt;@FloraGibbs&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second if() formula only has 2 arguments. I would suggest the following syntax for the whole calculation:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(selected(${sex}, 'Male') or selected(${sex}, 'Unknown'), 'Unknown', '')&lt;/P&gt;</description>
    <pubDate>Sat, 31 Dec 2022 00:18:56 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2022-12-31T00:18:56Z</dc:date>
    <item>
      <title>Conditional Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-answers/m-p/1244603#M46741</link>
      <description>&lt;P&gt;I am trying to have a spawning success question return unknown if the sex of the fish is male or unknown, but remain open to all options if female is selected. Here is my code:&lt;/P&gt;&lt;P&gt;(if(selected(${sex}, 'Male'), 'Unknown', if(selected(${sex}, 'Unknown'), 'Unknown')))&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error: b"ODK Validate Errors:\n&amp;gt;&amp;gt; Something broke the parser. See above for a hint.\nError evaluating field 'spawn_success': The problem was located in calculate expression for ${spawn_success}\nXPath evaluation: cannot handle function 'if' requires 3 arguments. Only 2 provided.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 17:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-answers/m-p/1244603#M46741</guid>
      <dc:creator>FloraGibbs</dc:creator>
      <dc:date>2022-12-30T17:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Answers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-answers/m-p/1244676#M46749</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/643106"&gt;@FloraGibbs&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second if() formula only has 2 arguments. I would suggest the following syntax for the whole calculation:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(selected(${sex}, 'Male') or selected(${sex}, 'Unknown'), 'Unknown', '')&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2022 00:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-answers/m-p/1244676#M46749</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2022-12-31T00:18:56Z</dc:date>
    </item>
  </channel>
</rss>

