<?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: Does anyone know how to use a wild card if then statement in field calculator? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384539#M30316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick testing seems to confirm that what you suggest works!&lt;/P&gt;&lt;P&gt;Thank-you Joshua!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 May 2017 18:03:18 GMT</pubDate>
    <dc:creator>DanCrawford</dc:creator>
    <dc:date>2017-05-05T18:03:18Z</dc:date>
    <item>
      <title>Does anyone know how to use a wild card if then statement in field calculator?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384537#M30314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to setup a simple if then statement that uses a wildcard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If [SPECIES_CD_2] = "B" Then &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;** this statement works but&lt;/P&gt;&lt;P&gt;If [SPECIES_CD_2] LIKE "B*" Then &amp;nbsp; &amp;nbsp; &amp;nbsp; ** this statement doesn't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried substituting %, #, &amp;amp; for the asterisk but I keep getting an error (sub or function not defined)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 17:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384537#M30314</guid>
      <dc:creator>DanCrawford</dc:creator>
      <dc:date>2017-05-05T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to use a wild card if then statement in field calculator?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384538#M30315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When working in the field calculator, you are either using VBScript or Python, I strongly recommend Python.&amp;nbsp; The LIKE operator you are attempting to use is an SQL function.&amp;nbsp; Python does not have a LIKE string function and I don't believe VBScript does either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your syntax indicates you are using VBScript.&amp;nbsp; I believe If &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;LEFT([SPECIES_CD_2],1) = "B"&lt;/SPAN&gt; should mimic the LIKE statement you have provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 17:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384538#M30315</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-05T17:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to use a wild card if then statement in field calculator?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384539#M30316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick testing seems to confirm that what you suggest works!&lt;/P&gt;&lt;P&gt;Thank-you Joshua!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 18:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384539#M30316</guid>
      <dc:creator>DanCrawford</dc:creator>
      <dc:date>2017-05-05T18:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to use a wild card if then statement in field calculator?</title>
      <link>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384540#M30317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If my, or any other, response answers your question, please mark it Correct so others know you already have a workable solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 18:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-anyone-know-how-to-use-a-wild-card-if-then/m-p/384540#M30317</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-05T18:54:57Z</dc:date>
    </item>
  </channel>
</rss>

