<?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 else statements for survey 123 templates in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603343#M62037</link>
    <description>&lt;P&gt;Can I do that but if there is no value in q1 that it would return \? for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;${#CatchRun}&lt;/P&gt;&lt;P&gt;&amp;nbsp; ${if catchRunNumber == 1}${catchRunPressure}${/}&lt;/P&gt;&lt;P&gt;${if !catchRunNumber} \&lt;/P&gt;&lt;P&gt;${/}&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2025 17:42:34 GMT</pubDate>
    <dc:creator>JessicaStoeckli</dc:creator>
    <dc:date>2025-04-07T17:42:34Z</dc:date>
    <item>
      <title>If else statements for survey 123 templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603011#M62020</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write a syntax for a report template that displays a value when another value is true and display a "\" or "-" if there was no entry.&lt;/P&gt;&lt;P&gt;For example - if they answered "yes" to Q1. then display the answer to Q.2, otherwise "-" is displayed. I tried the else statement but I must have something wrong because it is giving me a parse error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 22:50:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603011#M62020</guid>
      <dc:creator>JessicaStoeckli</dc:creator>
      <dc:date>2025-04-04T22:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: If else statements for survey 123 templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603320#M62036</link>
      <description>&lt;P&gt;There really isn't an if/else statement as we would expect in the template. It is an if/then nothing statement where nothing happens if the if statement isn't met. What you'd need to do is set up 2 if statements one for if q1 = yes and another statement for if q1 = no.&lt;/P&gt;&lt;P&gt;It would look something like this, assuming a select one question for the yes/no response:&lt;/P&gt;&lt;P&gt;${if q1 | selected:"yes"} ${q2} ${/}&lt;/P&gt;&lt;P&gt;${if q1 | selected:"no"} - ${/}&lt;/P&gt;&lt;P&gt;Here's the page for conditional formatting for more guidance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereport-conditionalelements.htm" target="_blank"&gt;Conditional report elements—ArcGIS Survey123 | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 16:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603320#M62036</guid>
      <dc:creator>TylerGraham2</dc:creator>
      <dc:date>2025-04-07T16:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: If else statements for survey 123 templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603343#M62037</link>
      <description>&lt;P&gt;Can I do that but if there is no value in q1 that it would return \? for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;${#CatchRun}&lt;/P&gt;&lt;P&gt;&amp;nbsp; ${if catchRunNumber == 1}${catchRunPressure}${/}&lt;/P&gt;&lt;P&gt;${if !catchRunNumber} \&lt;/P&gt;&lt;P&gt;${/}&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 17:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603343#M62037</guid>
      <dc:creator>JessicaStoeckli</dc:creator>
      <dc:date>2025-04-07T17:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: If else statements for survey 123 templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603369#M62039</link>
      <description>&lt;P&gt;I'd try ${if catchRunNumber == null} Text here ${/} and see what happens.&amp;nbsp; It worked as a solution here: &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-insert-text-for-null-values/td-p/1195585" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-insert-text-for-null-values/td-p/1195585&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603369#M62039</guid>
      <dc:creator>TylerGraham2</dc:creator>
      <dc:date>2025-04-07T18:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: If else statements for survey 123 templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603447#M62042</link>
      <description>&lt;P&gt;No luck. This is in a repeat table - see photo. If there are only 3 catch runs entered (for ex.) i want all the rest of the boxes filled with a "\" or "-" . I have tried ${ if catchRunNumber !=1} / ${/} but then i get / / / in my report.&amp;nbsp; If you can guide me how to format this repeat table to only show values entered that would be great too but based on my findings, this is not possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JessicaStoeckli_0-1744057439093.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129619iBCF372F04A61E25D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JessicaStoeckli_0-1744057439093.png" alt="JessicaStoeckli_0-1744057439093.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 20:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603447#M62042</guid>
      <dc:creator>JessicaStoeckli</dc:creator>
      <dc:date>2025-04-07T20:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: If else statements for survey 123 templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603541#M62050</link>
      <description>&lt;P&gt;You might be better off setting up the logic within the survey instead of the report. Have a hidden field in your survey for each box in your table and perform the calculation there. Then you can just call that field in your report.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 00:20:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603541#M62050</guid>
      <dc:creator>j-bromp</dc:creator>
      <dc:date>2025-04-08T00:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: If else statements for survey 123 templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603724#M62055</link>
      <description>&lt;P&gt;I've attached a screenshot of how I iterate through a repeat table that I use for stratigraphy recorded in the field. I call the repeat ${#Stragiraphy} in the first column of the table layout all the fields I need and close the repeat inside the table with the ${/} after "multiline". This creates a seamless table that iterates through all the related repeats.&amp;nbsp; If you don't have to follow a standard for how your data is presented you might explore reformatting how it is laid out.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have to maintain the formatting, you might try $feature | getValue: "position" as a query.&amp;nbsp; I attached a mock up docx of how I'd try to get it done while maintaining the formatting. I haven't tested this, so it may or may not work. I also reduced the number of times you call the repeat table, rather than opening and closing the repeat for each cell, I call it for a row in your report table and close it at the end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereport-repeats.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereport-repeats.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereport-expressions.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereport-expressions.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 13:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-else-statements-for-survey-123-templates/m-p/1603724#M62055</guid>
      <dc:creator>TylerGraham2</dc:creator>
      <dc:date>2025-04-08T13:31:58Z</dc:date>
    </item>
  </channel>
</rss>

