Jump to content
UBot Underground

Maximum Value Of A List


Recommended Posts

Hi,

is there a way to pull the maximum value of a list? let's say my list is

 

70.11

69.99

70.23

 

so i want the bot to pull the maximum value which is 70.23, i appreciate your help in advance!

 

thanks

Link to post
Share on other sites

set(#sort list,$sort list(%mylist,"Descending"),"Global")

 

this sorts the list

 

or if you just want the maximum number on the fly try

 

set(#max value,$find regular expression($sort list(%mylist,"Descending"),"^.+"),"Global")

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...