<?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: Logical expressions in Attribute Rules (Arcade) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/logical-expressions-in-attribute-rules-arcade/m-p/1334473#M73633</link>
    <description>&lt;P&gt;To post formatted code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1689266678674.png" style="width: 546px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75345i1DB988B7B4303219/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_0-1689266678674.png" alt="JohannesLindner_0-1689266678674.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1689266693900.png" style="width: 469px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75346i06615A9413162052/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_1-1689266693900.png" alt="JohannesLindner_1-1689266693900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your check for LIFT is wrong. You use &lt;STRONG&gt;=&lt;/STRONG&gt;, which is for assignment. You either want to use&lt;STRONG&gt; ==&lt;/STRONG&gt; for comparison, or (more probable) you want to use the same check &lt;STRONG&gt;&amp;gt; -1&lt;/STRONG&gt; you used for the other words.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 11:33:41 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-10-03T11:33:41Z</dc:date>
    <item>
      <title>Logical expressions in Attribute Rules (Arcade)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/logical-expressions-in-attribute-rules-arcade/m-p/1334363#M73626</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using Pro 3.x; writing Attribute Rules.&amp;nbsp; I've got an expression that it keeps saying that it needs a close parenthesis.&amp;nbsp; I've put this expression into Notepad ++ and it shows the matching parenthesis.&amp;nbsp; Doesn't seem to be any missing.&amp;nbsp; Is this perhaps a false message and I'm missing something else?&amp;nbsp; I am actually trying to mine the data in the comments field looking for each of those words/phrases (except I don't want the comments that have both STORMWATER and LIFT in them.&amp;nbsp; I did try those on the previous if statement, didn't work there either.&amp;nbsp; Any help appreciated, cause I'm just not seeing it.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lorinda&lt;/P&gt;&lt;P&gt;var comments = $feature.Comments&lt;BR /&gt;var ckcomments = $feature.CheckComments&lt;BR /&gt;var discount = $feature.Discount&lt;/P&gt;&lt;P&gt;if (discount &amp;gt; 42) {&lt;BR /&gt;ckcomments = 'Y';&lt;BR /&gt;}&lt;BR /&gt;else if ((Find("WASTELAND",comments,0) &amp;gt;-1) || (Find("SUBMERGE",comments,0) &amp;gt;-1) || (Find("LAKE BOTTOM",comments,0) &amp;gt;-1) || (Find("POND",comments,0) &amp;gt;-1) || (Find("HOA",comments,0) &amp;gt;-1) || (Find("ZERO",comments,0) &amp;gt;-1)) {&lt;BR /&gt;ckcomments = 'Y';&lt;BR /&gt;}&lt;BR /&gt;else if ((Find("STORMWATER",comments,0) &amp;gt;-1) &amp;amp;&amp;amp; (Find("LIFT",comments,0) = 1)) {&lt;BR /&gt;ckcomments = 'Y';&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;ckcomments = 'N';&lt;BR /&gt;}&lt;BR /&gt;return ckcomments;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 22:59:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/logical-expressions-in-attribute-rules-arcade/m-p/1334363#M73626</guid>
      <dc:creator>LorindaGilbert</dc:creator>
      <dc:date>2023-10-02T22:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Logical expressions in Attribute Rules (Arcade)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/logical-expressions-in-attribute-rules-arcade/m-p/1334473#M73633</link>
      <description>&lt;P&gt;To post formatted code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1689266678674.png" style="width: 546px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75345i1DB988B7B4303219/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_0-1689266678674.png" alt="JohannesLindner_0-1689266678674.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1689266693900.png" style="width: 469px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75346i06615A9413162052/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_1-1689266693900.png" alt="JohannesLindner_1-1689266693900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your check for LIFT is wrong. You use &lt;STRONG&gt;=&lt;/STRONG&gt;, which is for assignment. You either want to use&lt;STRONG&gt; ==&lt;/STRONG&gt; for comparison, or (more probable) you want to use the same check &lt;STRONG&gt;&amp;gt; -1&lt;/STRONG&gt; you used for the other words.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 11:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/logical-expressions-in-attribute-rules-arcade/m-p/1334473#M73633</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-10-03T11:33:41Z</dc:date>
    </item>
  </channel>
</rss>

