<?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: using indexed-repeat twice in an if statement in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1564129#M60336</link>
    <description>&lt;P&gt;I second splitting that calculation up. &lt;STRONG&gt;All distinct operations diverse their own distinct line/calculate&lt;/STRONG&gt;. While you &lt;EM&gt;can&lt;/EM&gt; sometimes get away with combining operations, I would try and not make a habit of it.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 16:12:35 GMT</pubDate>
    <dc:creator>abureaux</dc:creator>
    <dc:date>2024-12-03T16:12:35Z</dc:date>
    <item>
      <title>using indexed-repeat twice in an if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1563838#M60322</link>
      <description>&lt;P&gt;Running into an issue where i seem to be unable to use indexed-repeat twice in an if statement. I have tried a couple of different ways around as shown below:&lt;/P&gt;&lt;TABLE width="1445"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="1445"&gt;&lt;P&gt;if( string-length(indexed-repeat(${field2}, ${repeat}, 1)) &amp;gt; 0, indexed-repeat(${field2}, ${repeat}, 1), 'UTP')&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE width="1445"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="1444.39px" height="76px"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( indexed-repeat(${field1}, ${repeat}, 1) = 'UTP', 'UTP', indexed-repeat(${field2}, ${repeat}, 1))&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;When saving the xls form i don't get any errors but when looking at the fields in the survey, it throws an error and just shows the calculation as opposed to the desired result.&lt;BR /&gt;&lt;BR /&gt;Any ideas? is there a limit on using indexed-repeat in if statements?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 20:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1563838#M60322</guid>
      <dc:creator>j-bromp</dc:creator>
      <dc:date>2024-12-02T20:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: using indexed-repeat twice in an if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1563984#M60329</link>
      <description>&lt;P&gt;Does it work without the if statement?&lt;/P&gt;&lt;P&gt;Can you share your xlsform?&lt;/P&gt;&lt;P&gt;Are you putting this within the repeat you are referencing? That won't work at all&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_F3E28755416F4A6CBD7B7D900EB9EFE6" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_F3E28755416F4A6CBD7B7D900EB9EFE6&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 06:37:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1563984#M60329</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-12-03T06:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: using indexed-repeat twice in an if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1564056#M60334</link>
      <description>&lt;P&gt;Several statements get confused when nested in a if.&amp;nbsp; Break it out into its own field then reference that in the if.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 14:13:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1564056#M60334</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-12-03T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: using indexed-repeat twice in an if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1564129#M60336</link>
      <description>&lt;P&gt;I second splitting that calculation up. &lt;STRONG&gt;All distinct operations diverse their own distinct line/calculate&lt;/STRONG&gt;. While you &lt;EM&gt;can&lt;/EM&gt; sometimes get away with combining operations, I would try and not make a habit of it.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 16:12:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1564129#M60336</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-12-03T16:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: using indexed-repeat twice in an if statement</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1564287#M60339</link>
      <description>&lt;P&gt;I ended up splitting them out and it worked however it's meant tripling the number of fields i need to have, wishing esri would solve the indexing within a repeat, would save so much effort, in this case i have one field showing a rolling average value across repeats, and i need 95 fields to calculated it over my prescribed number of tests.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 19:31:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-indexed-repeat-twice-in-an-if-statement/m-p/1564287#M60339</guid>
      <dc:creator>j-bromp</dc:creator>
      <dc:date>2024-12-03T19:31:20Z</dc:date>
    </item>
  </channel>
</rss>

