<?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: writing an expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341774#M74451</link>
    <description>&lt;P&gt;I usually use the Definition&amp;nbsp; Query to set within the layer and the copy two more times and change it to like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Definition&amp;nbsp; Query road type is equal to&amp;nbsp;Major Arterial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example : One layer&amp;nbsp;&amp;nbsp;using "road type is equal to Highway"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;copy and paste in the Contents and change again to like this&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;road type is equal to&amp;nbsp;Major Arterial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then again copy and paste the same layer and change to&amp;nbsp;road type is equal to&amp;nbsp;Minor Arterial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then for each layer, you can set labels for each certain roads ...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and I think that is the easiest way to do it.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 01:54:43 GMT</pubDate>
    <dc:creator>DEAF_PROBERT_68</dc:creator>
    <dc:date>2023-10-26T01:54:43Z</dc:date>
    <item>
      <title>writing an expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341711#M74446</link>
      <description>&lt;P&gt;I'm trying to write an expression in arcade for labeling properties.&lt;/P&gt;&lt;P&gt;What I want to do is only label certain roads,&lt;/P&gt;&lt;P&gt;The criteria is the road type is equal to either "Highway" "Major Arterial" or "Minor Arterial"&lt;/P&gt;&lt;P&gt;I'm new to expressions so any help is appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 21:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341711#M74446</guid>
      <dc:creator>TristanBest</dc:creator>
      <dc:date>2023-10-25T21:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: writing an expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341774#M74451</link>
      <description>&lt;P&gt;I usually use the Definition&amp;nbsp; Query to set within the layer and the copy two more times and change it to like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Definition&amp;nbsp; Query road type is equal to&amp;nbsp;Major Arterial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example : One layer&amp;nbsp;&amp;nbsp;using "road type is equal to Highway"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;copy and paste in the Contents and change again to like this&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;road type is equal to&amp;nbsp;Major Arterial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then again copy and paste the same layer and change to&amp;nbsp;road type is equal to&amp;nbsp;Minor Arterial&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then for each layer, you can set labels for each certain roads ...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and I think that is the easiest way to do it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 01:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341774#M74451</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2023-10-26T01:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: writing an expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341899#M74463</link>
      <description>&lt;P&gt;However, you can do this with arcade if you want to. Something like this might work:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var highway = $feature.&amp;lt;attribute containing road type&amp;gt; = "Highway";
var majorArterial = $feature.&amp;lt;attribute containing road type&amp;gt; = "Major Arterial";
var minorArterial= $feature.&amp;lt;attribute containing road type&amp;gt; = "Minor Arterial";
var roadLabel = $feature.&amp;lt;Road Name Attribute&amp;gt;;

When(highway, roadLabel, majorArterial, roadLabel, minorArterial, roadLabel, "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if that's the best way to do it but it should work.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 12:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341899#M74463</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2023-10-26T12:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: writing an expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341915#M74465</link>
      <description>&lt;P&gt;Label pane &amp;gt; Class tab &amp;gt; SQL Query button&lt;/P&gt;&lt;P&gt;You don't need to properly write an expression, just select "Create a new expression" and it will give you the boxes to select which attributes you want labeled.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 13:07:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/writing-an-expression/m-p/1341915#M74465</guid>
      <dc:creator>jbcypreste</dc:creator>
      <dc:date>2023-10-26T13:07:08Z</dc:date>
    </item>
  </channel>
</rss>

