<?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: Restricting Query in Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/restricting-query-in-arcade/m-p/1179584#M46276</link>
    <description>&lt;P&gt;You can test whether the value is "B" then replace it.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if ($feature.Birds == 'B') {
  Replace($feature.Birds, 'B', 'B1')
}&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 02 Jun 2022 18:40:26 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-06-02T18:40:26Z</dc:date>
    <item>
      <title>Restricting Query in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/restricting-query-in-arcade/m-p/1179485#M46268</link>
      <description>&lt;P&gt;HI there,&lt;/P&gt;&lt;P&gt;I've got a feature layer (78,000 rows), and in a few columns I need to do some replacing. There are "A", "B", "B1", "B2", "C" and "D" values. I need to replace every "B" to a "B1". I've opened up the feature layer in ArcGIS online, and gone to the data tab. The I click on the column header, and hit calculate. I'm, then going into arcade and writing the following;&lt;/P&gt;&lt;P&gt;Replace($feature.Birds, 'B', 'B1')&lt;/P&gt;&lt;P&gt;This does replace all the B's, but unfortunately the "B1" values become "B11", and "B2" becomes "B12". Is there a way to restrict it so that it will only replace the lone B values, not when they're in a B1 or B2? I'm just getting started with this, and my knowledge of the syntax isn't great.&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 15:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/restricting-query-in-arcade/m-p/1179485#M46268</guid>
      <dc:creator>SeanDugan</dc:creator>
      <dc:date>2022-06-02T15:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting Query in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/restricting-query-in-arcade/m-p/1179584#M46276</link>
      <description>&lt;P&gt;You can test whether the value is "B" then replace it.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if ($feature.Birds == 'B') {
  Replace($feature.Birds, 'B', 'B1')
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 18:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/restricting-query-in-arcade/m-p/1179584#M46276</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-06-02T18:40:26Z</dc:date>
    </item>
  </channel>
</rss>

