Jump to content
DylanTroonesYT

People Helppppp

Recommended Posts

In my script I would like to delete all the results except the last one. The results are 6 and I would like to delete the first 5. Write me which command to use ??

Share this post


Link to post
Share on other sites

This is a very basic task.

You need to:
  1. Get first 5 results via getResults function and store them in a variable.
  2. Remove first 5 results via removeResults function by passing variable from step 1 to the function as argument.

Note: this will only work as expected, if you have exactly 6 results, so you may need to check count of results via getResultsCount function and/or consider possibility of getting different amount of results.

Share this post


Link to post
Share on other sites

 

local t = gg.getResultsCount()

local t = getResults(t - 1)

gg.removeResults(t)

 

 

???????

Edited by TisNquyen
Misspell

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...