<?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 How to set multiple conditions definitionExpression in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-set-multiple-conditions/m-p/540823#M4646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I want to set multiple condition in&amp;nbsp;&lt;SPAN&gt;definitionExpression. Below is the code which I am using:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class=""&gt;self.featureLayer.definitionExpression = "Name =&amp;nbsp;'47 MARKET STREET, NEW YORK, NY ,10002'|| &lt;SPAN&gt;Name =&amp;nbsp;'621 WATER STREET, NEW YORK, NY ,10002&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But does not get any result. Can you please provide me correct definitionExpression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I am using arcgis runtime ios sdk 100.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2017 19:26:06 GMT</pubDate>
    <dc:creator>DasNobel</dc:creator>
    <dc:date>2017-07-13T19:26:06Z</dc:date>
    <item>
      <title>How to set multiple conditions definitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-set-multiple-conditions/m-p/540823#M4646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I want to set multiple condition in&amp;nbsp;&lt;SPAN&gt;definitionExpression. Below is the code which I am using:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class=""&gt;self.featureLayer.definitionExpression = "Name =&amp;nbsp;'47 MARKET STREET, NEW YORK, NY ,10002'|| &lt;SPAN&gt;Name =&amp;nbsp;'621 WATER STREET, NEW YORK, NY ,10002&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But does not get any result. Can you please provide me correct definitionExpression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I am using arcgis runtime ios sdk 100.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 19:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-set-multiple-conditions/m-p/540823#M4646</guid>
      <dc:creator>DasNobel</dc:creator>
      <dc:date>2017-07-13T19:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set multiple conditions definitionExpression</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-set-multiple-conditions/m-p/540824#M4647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your question! &amp;nbsp;The FeatureLayer "definitionExpression" property is&amp;nbsp;simply a SQL Where clause. &amp;nbsp;So in your example, you would need to use "OR" instead of "||" for it to be valid SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #b4261a; background-color: #ffffff; font-size: 12px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;fl.&lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;definitionExpression&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;"Name = 'Kimi' OR Name = 'Sebastian'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as long as your feature layer has a field named "Name" which contains features with those exact names, you should be good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any problems,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 21:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-set-multiple-conditions/m-p/540824#M4647</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2017-07-13T21:04:12Z</dc:date>
    </item>
  </channel>
</rss>

