Jump to content
UBot Underground

Counting repeated items inside list?


Recommended Posts

Hello everyone..

Im currently extracting IDs into a big list and allowing repeated IDs to count on the %list.

My question is:

Is it possible to count how many repeated items on a specific ID I have? And list them along with its ID?

It could be on a &table.

Any ideas?

Link to post
Share on other sites

If "items" are unique the simplest way to do it in UBot would be to use "find regular expression" command on (&table,%list,variable) which would add all matches to a list, then you simply count that list to get a number.

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...