<?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: Should be easy! Field Calculate Table using If/Then in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219442#M720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: sfmeyer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevermind. Used an alternative method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Created a 2 step model first using the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Make Table View&lt;/SPAN&gt;&lt;SPAN&gt; tool with my selection expression " Value &amp;gt; 2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then performed the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Calculate Field&lt;/SPAN&gt;&lt;SPAN&gt; tool with "= 2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure thereis a python logic that would plug right in but a fix is a fix. I'd still like to know the original answer if someone has it. Good day.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 21:31:04 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-08-09T21:31:04Z</dc:date>
    <item>
      <title>Should be easy! Field Calculate Table using If/Then</title>
      <link>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219441#M719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: sfmeyer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to make a very simple field calculation, in modelbuilder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16818[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the values in the [DepthMin] field above, I want to replace any value &amp;gt; 2 with a 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The current value above (24.75) could be any number between 2 and 25 so doing a standard !replace! (24.75 , 2) will not work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? Thanks VERY much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 20:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219441#M719</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-08-09T20:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Should be easy! Field Calculate Table using If/Then</title>
      <link>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219442#M720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: sfmeyer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevermind. Used an alternative method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Created a 2 step model first using the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Make Table View&lt;/SPAN&gt;&lt;SPAN&gt; tool with my selection expression " Value &amp;gt; 2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then performed the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Calculate Field&lt;/SPAN&gt;&lt;SPAN&gt; tool with "= 2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure thereis a python logic that would plug right in but a fix is a fix. I'd still like to know the original answer if someone has it. Good day.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 21:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219442#M720</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-08-09T21:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Should be easy! Field Calculate Table using If/Then</title>
      <link>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219443#M721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def calc(DepthMin):
&amp;nbsp; if DepthMin &amp;gt; 2:
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 2
&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;calc( !DepthMin! )&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:42:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219443#M721</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-11T10:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Should be easy! Field Calculate Table using If/Then</title>
      <link>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219444#M722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jscheirer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you mean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def calc(DepthMin):
&amp;nbsp; if DepthMin &amp;gt; 2.0:
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 2.0
&amp;nbsp; return DepthMin&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/should-be-easy-field-calculate-table-using-if-then/m-p/219444#M722</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T10:42:28Z</dc:date>
    </item>
  </channel>
</rss>

