<?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 Conditional statement syntax in Survey123 report template in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1206146#M44459</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know it's possible to use conditional logic in feature report templates, and I've used it before when I'm only checking against one field. However, I need to set up a statement that use '&amp;amp;&amp;amp;' to check against two different fields.&lt;/P&gt;&lt;P&gt;I have something like this, but haven't gotten it to work so far:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;${if dom_test == “Yes”} &amp;amp;&amp;amp; ${rapid_test == "No"}X${/}${if dom_test == “No”}${/}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want the cell in the table to be filled with an 'X' &lt;EM&gt;ONLY IF&lt;/EM&gt; the answer to dom_test is "Yes" &lt;EM&gt;AND&lt;/EM&gt; the answer to rapid_test is "No". Otherwise, leave the cell blank.&lt;/P&gt;&lt;P&gt;I've read the documentation &lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm#ESRI_SECTION1_A789EA089E14456995E9910119300AD5" target="_blank" rel="noopener"&gt;here&lt;/A&gt; but didn't see any specific examples of how to format this. Thanks for any assistance!&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 14:41:45 GMT</pubDate>
    <dc:creator>Katie_Clark</dc:creator>
    <dc:date>2022-08-25T14:41:45Z</dc:date>
    <item>
      <title>Conditional statement syntax in Survey123 report template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1206146#M44459</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know it's possible to use conditional logic in feature report templates, and I've used it before when I'm only checking against one field. However, I need to set up a statement that use '&amp;amp;&amp;amp;' to check against two different fields.&lt;/P&gt;&lt;P&gt;I have something like this, but haven't gotten it to work so far:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;${if dom_test == “Yes”} &amp;amp;&amp;amp; ${rapid_test == "No"}X${/}${if dom_test == “No”}${/}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want the cell in the table to be filled with an 'X' &lt;EM&gt;ONLY IF&lt;/EM&gt; the answer to dom_test is "Yes" &lt;EM&gt;AND&lt;/EM&gt; the answer to rapid_test is "No". Otherwise, leave the cell blank.&lt;/P&gt;&lt;P&gt;I've read the documentation &lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm#ESRI_SECTION1_A789EA089E14456995E9910119300AD5" target="_blank" rel="noopener"&gt;here&lt;/A&gt; but didn't see any specific examples of how to format this. Thanks for any assistance!&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 14:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1206146#M44459</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-08-25T14:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional statement syntax in Survey123 report template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1206381#M44468</link>
      <description>&lt;P&gt;After many many iterations of trial and error, I got it to work.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;${if rapid_test == “No” &amp;amp;&amp;amp; dom_test == “Yes”}X${/}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I was thrown off because you need to reference the second field without using the dollar sign and curly bracket syntax. Perhaps this post will help someone in the future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 16:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1206381#M44468</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2022-08-25T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional statement syntax in Survey123 report template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1320361#M51293</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/232739"&gt;@Katie_Clark&lt;/a&gt;&amp;nbsp;, this helped me finally figure out how to create conditional formatting for values with ranges in my feature report.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 23:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1320361#M51293</guid>
      <dc:creator>TCKauhi</dc:creator>
      <dc:date>2023-08-18T23:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional statement syntax in Survey123 report template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1320662#M51306</link>
      <description>&lt;P&gt;Oh yay! I'm so glad my post could help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 13:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-syntax-in-survey123-report/m-p/1320662#M51306</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2023-08-21T13:46:10Z</dc:date>
    </item>
  </channel>
</rss>

