<?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: Multiple Fields and When/If Statements? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/multiple-fields-and-when-if-statements/m-p/272196#M13323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you trying to combine multiple scores, are you trying to get the total score for those related fields when the boolean is 1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2018 22:04:19 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2018-12-19T22:04:19Z</dc:date>
    <item>
      <title>Multiple Fields and When/If Statements?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multiple-fields-and-when-if-statements/m-p/272194#M13321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have multiple boolean fields in (1,0) and if they have a 1 they should have a score associated. I have many of these and don't want to write if statements for every single one. How can I string them all together?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When($feature.Cracks == 1,$feature.Sc_Cracks,&lt;/P&gt;&lt;P&gt;$feature.Branch_Unions == 1,$feature.Sc_Branch_Unions,&lt;/P&gt;&lt;P&gt;$feature.StemBranch_Decay == 1, $feature.Sc_StemBranch_D,&lt;/P&gt;&lt;P&gt;$feature.Fungal_Bodies == 1,$feature.Sc_Fungal_Bodies,&lt;/P&gt;&lt;P&gt;$feature.Cankers == 1,$feature.Sc_Cankers,&lt;/P&gt;&lt;P&gt;$feature.DeadTree_Top_Branch == 1,$feature.Sc_DeadTopBrch,&lt;/P&gt;&lt;P&gt;$feature.Beetles == 1,$feature.Sc_Beetles,&lt;/P&gt;&lt;P&gt;$feature.Root_Damage == 1,$feature.Sc_Root_Damage,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;$feature.Architecture == 1,$feature.Sc_Architecture,'')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;But it would only return one value, not all of them (if there were more than one.) I don't think it likes the multiple fields.&lt;BR /&gt;&lt;BR /&gt;Help pleasseeeee!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 22:27:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multiple-fields-and-when-if-statements/m-p/272194#M13321</guid>
      <dc:creator>deleted-user-jxpbpbjlZInj</dc:creator>
      <dc:date>2018-12-17T22:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Fields and When/If Statements?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multiple-fields-and-when-if-statements/m-p/272195#M13322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think each expression can only return one value, so that's why you're having that issue. You might be able to return an array, but it depends on what you're looking to do and what your data looks like.&amp;nbsp; Are you trying to modify pop-ups, the way the data displays, or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 02:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multiple-fields-and-when-if-statements/m-p/272195#M13322</guid>
      <dc:creator>StephenM</dc:creator>
      <dc:date>2018-12-19T02:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Fields and When/If Statements?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/multiple-fields-and-when-if-statements/m-p/272196#M13323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you trying to combine multiple scores, are you trying to get the total score for those related fields when the boolean is 1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 22:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/multiple-fields-and-when-if-statements/m-p/272196#M13323</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-12-19T22:04:19Z</dc:date>
    </item>
  </channel>
</rss>

