Jump to content

Archived

This topic is now archived and is closed to further replies.

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)

 

 

???????

Share this post


Link to post
Share on other sites

×
×
  • Create New...