<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to get second highest digit from array?</title><link>https://community.appian.com/discussions/f/general/26078/how-to-get-second-highest-digit-from-array</link><description>Hello community, 
 
 can anyone suggest me how to get second highest number from an array. 
 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/105213?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 07:01:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19a88133-e9a9-4927-88a2-34f453faed64</guid><dc:creator>samarm0001</dc:creator><description>&lt;p&gt;a!localVariables(&lt;br /&gt; local!array: { 1, 2, 3, 4 },&lt;br /&gt; max(&lt;br /&gt; remove(&lt;br /&gt; local!array,&lt;br /&gt; wherecontains(&lt;br /&gt; tointeger(max(local!array)),&lt;br /&gt; local!array&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102247?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 14:52:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56883bcc-7bb2-43ad-ad2e-c3dfcf49020c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Very neat approach :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102108?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:50:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:790a31b3-5d59-44b9-8ca7-1c25342a55e4</guid><dc:creator>Sunil</dc:creator><description>&lt;p&gt;Thanks for the information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102107?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:49:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:228aafc1-e755-4a67-bd4e-1ccbcbb88c7d</guid><dc:creator>Sunil</dc:creator><description>&lt;p&gt;Okay thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102103?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:43:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8cf1950-7091-412b-a91a-d1c1a13e974f</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;My friend, you have to deploy the plugin first it has lots of other sorting functions which are quite helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102102?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:42:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9f49d48-4691-4ba7-a0f3-7746aa4d084d</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;it is a plugin .... for which he has shared the link&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102101?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:42:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fabf8e20-faaa-4673-94b6-3e7cf2db357c</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;That is a plugin. Do not use plugin for this simple usecase.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102100?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:42:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:39c14c63-eb7b-4d8e-9525-972ccb5fff98</guid><dc:creator>Sunil</dc:creator><description>&lt;p&gt;It shows error&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The function &amp;#39;sortintegerarray&amp;#39; is unavailable.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102098?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:37:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af9db5de-f24e-4c59-ace8-2c83007631cd</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!val:{1,2,3,4,0},
  local!max1: max(local!val),
  local!ans: a!forEach(
    items: local!val,
    expression: if(fv!item=local!max1,{},fv!item)
  ),
  local!max2:max(local!ans),
  local!max2
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102097?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:36:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26f15753-ef2c-4c0e-b047-a7c853f3708f</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!array: {1,2,3,4,5,6},
  max(difference(todecimal(local!array),max(local!array)))
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get second highest digit from array?</title><link>https://community.appian.com/thread/102096?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 12:36:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8171586-8cf0-4386-b67f-7dc5ec7574e3</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Check this plugin&amp;nbsp;&lt;a href="/b/appmarket/posts/sort-utilities"&gt;https://community.appian.com/b/appmarket/posts/sort-utilities&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;index(
  sortintegerarray(
    {1,20,8,9,2},
    true()
  ),
  2,
  {}
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>