<?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: I am not able to use IF condition in filed calculator ? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85457#M509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/341990_pastedImage_1.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;Is there any possibility that i can use IF condition in field calculation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2017 07:15:49 GMT</pubDate>
    <dc:creator>ArpitSingh</dc:creator>
    <dc:date>2017-03-17T07:15:49Z</dc:date>
    <item>
      <title>I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85455#M507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/341938_pastedImage_1.png" style="width: 620px; height: 348px;" /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have created a new field named GS which has values from the field V_type but there are some missing values in field V_type so i want to fill the GS filed with another field named Location&lt;/P&gt;&lt;P&gt;How should i proceed with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 05:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85455#M507</guid>
      <dc:creator>ArpitSingh</dc:creator>
      <dc:date>2017-03-17T05:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85456#M508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you think about the following steps:&lt;/P&gt;&lt;P&gt;1. Use Select by Attributes: where V_Type = " " (Choose the blank value/values from the list of unique values).&lt;/P&gt;&lt;P&gt;2. Once the records are selected, populate the GS field with the values of the alternate field using field calculator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 06:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85456#M508</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-03-17T06:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85457#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/341990_pastedImage_1.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;Is there any possibility that i can use IF condition in field calculation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 07:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85457#M509</guid>
      <dc:creator>ArpitSingh</dc:creator>
      <dc:date>2017-03-17T07:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85458#M510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Click on &lt;STRONG&gt;Get Unique Values&lt;/STRONG&gt; and select the blank value from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 07:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85458#M510</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-03-17T07:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85459#M511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't press the Get Unique values button, otherwise there would be a list of unique values listed.&amp;nbsp; That whole expression can be created without typing and the " " should be in single quotes&amp;nbsp;' '&amp;nbsp; if you had selected from the unique values.&amp;nbsp; Also, you need to press the Verify button to verify the expression, it sometimes yields&amp;nbsp;better error messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 07:57:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85459#M511</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-17T07:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85460#M512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I done it&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that we have a problem in using IF condition either through VB or by Python&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 08:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85460#M512</guid>
      <dc:creator>ArpitSingh</dc:creator>
      <dc:date>2017-03-17T08:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85461#M513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is the 'if' statement? Are you using this as an example for an outside program?&amp;nbsp; If so and those blanks cells weren't spaces, then they would have been represented as such ( '' ) whereas in a geodatabase I would have expected to see a null representation.&amp;nbsp; There are ways to check for these conditions with if statements if you are using python in a separately called program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 08:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85461#M513</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-17T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85462#M514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I am using the shape file which has been created by some other person , due to some technical reasons while making of the shape file he has put some blanks in V_type field (as you can it in first picture). Now I created a new field (GS) which has the values same as V_type and where there is blank in V_type I was trying to put the value from Location field, So In the field calculation I was trying to use the If condition&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General logic for If condition was&amp;nbsp;&lt;/P&gt;&lt;P&gt;new field(GS) = V_type if V_type is blank/Null then GS = Location&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use this logic in field calculation which seems to be not possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 11:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85462#M514</guid>
      <dc:creator>ArpitSingh</dc:creator>
      <dc:date>2017-03-17T11:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to use IF condition in filed calculator ?</title>
      <link>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85463#M515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since this was a on-off, the easiest way is to do a quick select-by-attributes to get the records that are 'empty', then use the field calculator with newfield=oldfield because the field calculator only works on selected records rather all records.&amp;nbsp; This saves you the hastle of trying to come up with a field calculation function that accounts for 1 space, no spaces, non-printable characters etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 13:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-am-not-able-to-use-if-condition-in-filed/m-p/85463#M515</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-17T13:21:25Z</dc:date>
    </item>
  </channel>
</rss>

