<?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 Nested IIF in State &amp; Local Government Questions</title>
    <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293860#M1773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Make sure to follow the statement, what to do when true, what to do when false syntax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;IIF([Operator]="JBorgione","JVB",IIF([Operator] = "TCurtis","TMC",You are missing what I do when I am false))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2017 15:08:04 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2017-10-18T15:08:04Z</dc:date>
    <item>
      <title>Attribute Assistant Nested IIF</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293859#M1772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having looked at a number of posts on this subject, I'm still miffed as to the logic of a nested IIF.&amp;nbsp; Basically, I want an if, elseif statement that would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If condition 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; do this...&lt;/P&gt;&lt;P&gt;Elseif condtion2:&lt;/P&gt;&lt;P&gt;&amp;nbsp; do something else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple enough, right?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my actual situation:&amp;nbsp; I capture the login of a user, and based on that login, aa needs to assign one of 4 initial strings. With one iff:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIF([Operator] = "JBorgione","JVB,"")&amp;nbsp; &amp;nbsp; ### my login, changes to my initials, at this stage a different login would leave it&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ### blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a second iif, it fails:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIF([Operator]="JBorgione","JVB",IIF([Operator] = "TCurtis","TMC"))&amp;nbsp; ### if I don't login but TCurtis does....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what the log file tells me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ValueInfo: IIF([Operator]="JBorgione","JVB",IIF([Operator] = "TCurtis","TMC"))&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;replace field: Operator 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("JBorgione"="JBorgione","JVB",IIF("JBorgione" = "TCurtis","TMC"))&lt;BR /&gt; ERROR: evaluating the expression for feature in MasterStreetNameFC with OID of 26039&lt;BR /&gt; System.ArgumentException: Wrong number of arguments or invalid property assignment: 'IIF'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, I'm unsure of what I need to do to satisfy the requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/mmiller-esristaff"&gt;mmiller-esristaff&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/monzay"&gt;monzay&lt;/A&gt;‌&amp;nbsp; (I think you used to be user monzay, disregard if not...)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/stonejd"&gt;stonejd&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:03:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293859#M1772</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-10-18T15:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Nested IIF</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293860#M1773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Make sure to follow the statement, what to do when true, what to do when false syntax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;IIF([Operator]="JBorgione","JVB",IIF([Operator] = "TCurtis","TMC",You are missing what I do when I am false))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:08:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293860#M1773</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2017-10-18T15:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Nested IIF</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293861#M1774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool thanks.&amp;nbsp; It'll be a total of five iif's, so the last one will get the false statement, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works.&amp;nbsp; At least it changes my login to my initials....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIF([Operator]="JBorgione","JVB",IIF([Operator] = "TCurtis","TMC",IIF([Operator]="TBain","TXB",IIF([Operator]="BLeCheminant","BRL",IIF([Operator]="TARasmussen",TAR,"")))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:13:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293861#M1774</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-10-18T15:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant Nested IIF</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293862#M1775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIF([Operator]="JBorgione","JVB",IIF([Operator]="TCurtis","TMC",IIF([Operator]="JStone","JDS",IIF([Operator]="DBriggs","DAB",IIF([Operator]="FSunshine","FLS",Nothing)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replacing the JStone, JDS, DBriggs, DAB, FSunshine, FLS of course. I use this format to modify my municipal codes, swis codes, and municipal abbreviations without a problem. Entering [#] may also work as the last false statement&amp;nbsp;as it would just use the value that is already in there. I use&amp;nbsp;[#] for all of my nested iif's&amp;nbsp;accept the first of each process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this expression Nothing is used as the last false statement so that the system recognizes that it should be &amp;lt;Null&amp;gt;. Entering NULL as the last false statement would enter a text value of NULL. I have found that using "" also treats it as a text value, just blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps! I have attached a screen shot of my iif statements so you can see what I'm talking about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IIF statements for use in AA Dynamic Value table." class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/380379_IIFStatements-AA.gif" style="width: 779px; height: 93px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-nested-iif/m-p/293862#M1775</guid>
      <dc:creator>JenniferStone</dc:creator>
      <dc:date>2017-10-18T15:38:55Z</dc:date>
    </item>
  </channel>
</rss>

