<?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 Arcpy Amateur needing help with a substring find in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-amateur-needing-help-with-a-substring-find/m-p/123765#M9631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Acrpy community,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm fairly new to Arcpy and the python language in general.&amp;nbsp; However,I can grasp many aspects and functions of the language and am now trying to run my first script on a table.&amp;nbsp; Here's my dilemma:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I have a (shapefile) table with a row named "Broker_Not" (I am using an update cursor to query, find, and replace values)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Within "Broker_Not" I am trying to find records that contain the string "current"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. As an end result, if "current" is discovered in "Broker_Not", I would like to return a value of "CHECK" in a separate field named "ALIAS".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 13:47:29 GMT</pubDate>
    <dc:creator>ZachTirpak</dc:creator>
    <dc:date>2012-06-13T13:47:29Z</dc:date>
    <item>
      <title>Arcpy Amateur needing help with a substring find</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-amateur-needing-help-with-a-substring-find/m-p/123765#M9631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Acrpy community,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm fairly new to Arcpy and the python language in general.&amp;nbsp; However,I can grasp many aspects and functions of the language and am now trying to run my first script on a table.&amp;nbsp; Here's my dilemma:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I have a (shapefile) table with a row named "Broker_Not" (I am using an update cursor to query, find, and replace values)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Within "Broker_Not" I am trying to find records that contain the string "current"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. As an end result, if "current" is discovered in "Broker_Not", I would like to return a value of "CHECK" in a separate field named "ALIAS".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 13:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-amateur-needing-help-with-a-substring-find/m-p/123765#M9631</guid>
      <dc:creator>ZachTirpak</dc:creator>
      <dc:date>2012-06-13T13:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Amateur needing help with a substring find</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-amateur-needing-help-with-a-substring-find/m-p/123766#M9632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Put this statement in your update cursor loop, replacing 'row' with your iterator variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if "current" in row.Broker_Not:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.ALIAS = "CHECK"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-amateur-needing-help-with-a-substring-find/m-p/123766#M9632</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2021-12-11T07:06:04Z</dc:date>
    </item>
  </channel>
</rss>

