Using this help page: How To: Group unique values from multiple attribute fields in ArcGIS Pro
This little Arcade script groups unique values from multiple attribute fields. I created two variables, one for each attribute field. I then grouped unique values from each of the two fields and named it Batteries. It works fine.
var cat <SPAN class="operator token">=</SPAN> $feature<SPAN class="punctuation token">.</SPAN>USER_Categ
var key <SPAN class="operator token">=</SPAN> $feature<SPAN class="punctuation token">.</SPAN>USER_Keywo
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>cat <SPAN class="operator token">==</SPAN> <SPAN class="string token">"Batteries;"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>key <SPAN class="operator token">==</SPAN> <SPAN class="string token">"Lead-Acid Batteries;"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">return</SPAN> <SPAN class="string token">"Batteries"</SPAN><SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>How would I group multiple unique values? I've tried using multiple if statements, but that didn't seem to work.
