Jump to content
  • 0

How do I filter values?


Dr_Kol

Question

4 answers to this question

Recommended Posts

3 hours ago, ItsSC said:

GGRight top, filter range.

Script: Use table.

How do you use table? I thought using gg.getResults() automatically filters searches

[added 0 minutes later]
3 hours ago, ItsSC said:

GGRight top, filter range.

Script: Use table.

Bruv, I need some help from you on some codes. Pls can you help? 

Link to comment
Share on other sites

2 minutes ago, El_dorado said:

How do you use table? I thought using gg.getResults() automatically filters searches

Don't he mean filter values? Like 
1,214,555,1000,200000000 
Filter out 1 to 1000 then get 
1,214,555,1000

If I don't get this wrong, then this can be solve by table.

local t1 = gg.getResults(gg.getResultCount())
-- Start filtering value you want
filtered = {}
for i, v in pairs(t1)do 
  if(v>1 and v<1000) then -- Filtering range
  filtered[#filtered+1] = v
  end
end
print(filtered)

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.