<?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: Attribute Assistant: DynamicValue table syntax: Conditional IIF in State &amp; Local Government Questions</title>
    <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568555#M3722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even though the data is not NULL, try this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF(isNull([unit_num]), [stnum], [stnumsuf])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we are using the MS Script Control to process these expressions and it can be picky.&amp;nbsp; We did code for many of these cases and if I recall correctly, the IsNull() we added should handle blank.&amp;nbsp; Let me know if it works and if not, I can crack open the source and see what is going on.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 15:14:01 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2014-01-30T15:14:01Z</dc:date>
    <item>
      <title>Attribute Assistant: DynamicValue table syntax: Conditional IIF</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568552#M3719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've looked for some help on conditional Value Info statements and just can't find much. I have address points that are populated with both house numbers and unit information. I am wanting to calculate a label field with the house number if the unit number is blank, otherwise I want the label to contain the unit information. My if statement is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF([unit_num]="", [stnum], [stnumsuf])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is modeled after the example on the &lt;/SPAN&gt;&lt;A href="http://technet.microsoft.com/en-us/library/hh213574.aspx"&gt;SQL Server 2012 Transact-SQL Microsoft tech page&lt;/A&gt;&lt;SPAN&gt;. What this returns, however, is just the unit information (stnumsuf). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows Server 2008 Standard&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AA 10.2 add-in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL Server 2012 Express&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same behavior on:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows 7 x64&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AA 10.2 add-in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL Server 2012 Express&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 18:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568552#M3719</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-12-18T18:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: DynamicValue table syntax: Conditional IIF</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568553#M3720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure your unit_num field is an empty string and not NULL. Also, if your data is stored in SQL Server, you need to use single quotes, not double quotes. You could try this to take care of either case:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF([unit_num]='' OR [unit_num] IS NULL, [stnum], [stnumsuf])&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568553#M3720</guid>
      <dc:creator>ToddZimmerman</dc:creator>
      <dc:date>2013-12-19T10:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: DynamicValue table syntax: Conditional IIF</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568554#M3721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Are you sure your unit_num field is an empty string and not NULL. Also, if your data is stored in SQL Server, you need to use single quotes, not double quotes. You could try this to take care of either case:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;IIF([unit_num]='' OR [unit_num] IS NULL, [stnum], [stnumsuf])&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Todd,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. I am certain the field is not NULL, and have tried both double and single quotes previously. However, just for due diligence, I took your string and pasted it in my VALUEINFO field for that record and ran it manually on a selected set of 15 records (some with [unit_num] values and some that were blank): same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to be clear, my AA is actually working. For example, if I enter just &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#008000&amp;quot;;"&gt;[stnum]&lt;/SPAN&gt;&lt;SPAN&gt;, I get all house numbers in my label field. For another record, I have a rather long and nested Trim(Replace(Replace)) statement that works fine as well. It just seems to be hanging up on this conditional statement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568554#M3721</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-12-19T10:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: DynamicValue table syntax: Conditional IIF</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568555#M3722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even though the data is not NULL, try this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF(isNull([unit_num]), [stnum], [stnumsuf])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we are using the MS Script Control to process these expressions and it can be picky.&amp;nbsp; We did code for many of these cases and if I recall correctly, the IsNull() we added should handle blank.&amp;nbsp; Let me know if it works and if not, I can crack open the source and see what is going on.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-dynamicvalue-table-syntax/m-p/568555#M3722</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2014-01-30T15:14:01Z</dc:date>
    </item>
  </channel>
</rss>

