Hello community,
can anyone suggest me how to get second highest number from an array.
Thanks in advance
Discussion posts and replies are publicly visible
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 )