<?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: Help with IIF statement in Gas and Pipeline Questions</title>
    <link>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79203#M46</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at the offending feature with OID 10419? &amp;nbsp;Purely a WAG (wild a$$ guess). &amp;nbsp;Is there a &amp;lt;null&amp;gt; value where there shouldn't be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Feb 2017 14:00:54 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2017-02-18T14:00:54Z</dc:date>
    <item>
      <title>Help with IIF statement</title>
      <link>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79202#M45</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a nested IIF statement in a dynamic table that will populate a field I'm using to show an image in my popup window on Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works:&amp;nbsp;&lt;/P&gt;&lt;P&gt;IIF([MUTCD_ID]="UNK", "no image",IIF([SIGN_CATEGORY]=1,"regulatory","no image"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't work:&amp;nbsp;&lt;/P&gt;&lt;P&gt;IIF([MUTCD_ID]="UNK", "no image",IIF([SIGN_CATEGORY]=1,"regulatory/[MUTCD_ID]","no image"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row Info&lt;BR /&gt; Row Number 2&lt;BR /&gt; TableName: Sign&lt;BR /&gt; FieldName: EXISTING_IMAGE_LINK&lt;BR /&gt; ValueInfo: IIF([MUTCD_ID]="UNK", "no image",IIF([SIGN_CATEGORY]=1,"regulatory/[MUTCD_ID]","no image"))&lt;BR /&gt; ValueMethod: EXPRESSION&lt;BR /&gt; On Create: 0&lt;BR /&gt; On Change: 0&lt;/P&gt;&lt;P&gt;Checking for Subtype Restriction&lt;BR /&gt; Field Name: EXISTING_IMAGE_LINK was found at index: 31&lt;BR /&gt; Trying: EXPRESSION&lt;BR /&gt; replace field: SIGN_CATEGORY with a value&lt;BR /&gt; replace field: MUTCD_ID with a value&lt;BR /&gt; replace field: MUTCD_ID with a value&lt;BR /&gt; Checking to verify there is a field to store the expression&lt;BR /&gt;Expression to be eval: IIF("R7-1"="UNK", "no image",IIF(1=1,"regulatory/"R7-1"","no image"))&lt;BR /&gt; ERROR: evaluating the expression for feature in Sign with OID of 10419&lt;BR /&gt; Expected ')'&lt;BR /&gt; Finished: EXPRESSION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why it is expecting a closed parentheses. I've tried various things and it keeps throwing out this same error. The expression that works has the same number of parentheses.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 04:31:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79202#M45</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2017-02-18T04:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IIF statement</title>
      <link>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79203#M46</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at the offending feature with OID 10419? &amp;nbsp;Purely a WAG (wild a$$ guess). &amp;nbsp;Is there a &amp;lt;null&amp;gt; value where there shouldn't be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 14:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79203#M46</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-02-18T14:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IIF statement</title>
      <link>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79204#M47</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIF(="UNK", "no image",IIF(=1,"regulatory/" &amp;amp; ,"no image"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; you need to concatenate the variable and the string, might be a + instead of &amp;amp;, I am rusty on VB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my Verizon Wireless 4G LTE DROID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 16:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79204#M47</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2017-02-18T16:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IIF statement</title>
      <link>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79205#M48</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In response to the first reply I recreated the scenario in a file GDB with 3 columns to eliminate any other possibilities. The image below is showing the field alias and I still received the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/325565_pastedImage_1.png" style="width: 620px; height: 29px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In response to your suggestion of concatenating the string and variable I get the same error.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ValueInfo: IIF([MUTCD_ID]="UNK", "no image",IIF([SIGN_CATEGORY]=1,"regulatory/"&amp;amp;[MUTCD_ID],"no image")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Expression to be eval: IIF("R7-1"="UNK", "no image",IIF(1=1,"regulatory/"&amp;amp;"R7-1","no image")&lt;BR /&gt; ERROR: evaluating the expression for feature in sign with OID of 1&lt;BR /&gt; Expected ')'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turns out that using + as a concatenation operator is valid in VBA for numbers &lt;STRONG&gt;AND&lt;/STRONG&gt; strings. It worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ValueInfo: IIF([MUTCD_ID]="UNK", "no image",IIF([SIGN_CATEGORY]=1, "regulatory/"+[MUTCD_ID],"no image"))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What really started me down this path was wanting to force the value to lowercase. It works now.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;IIF([MUTCD_ID]="UNK", "no image",IIF([SIGN_CATEGORY]=1, "regulatory/"+LCase([MUTCD_ID]),"no image"))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Setting Value to: regulatory/r7-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 17:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/gas-and-pipeline-questions/help-with-iif-statement/m-p/79205#M48</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2017-02-18T17:40:29Z</dc:date>
    </item>
  </channel>
</rss>

