Jump to content
  • 0

Filter values with number final specific


MasterC

Question

Hi guys .. I Need make command to Scrip..

 

I Need filter a value number final especific

 

Example:

gg.searchNumber('1000000~1700000')

Will found many values 

Filter 1$ Not work this mode

I Need only numbers with final 1.

 

Example;

10000001;120000001;13000001 ....

Anyone can help me

 

Ps:

If i por gg.refineNumber('10000001;1200001') ....

No found all number for me ..

 

Thanks. Wait for help. 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

--gg.clearResults() -- to ensure that new search will be started
gg.searchNumber("1000000~1700000", gg.TYPE_DWORD)
local results = gg.getResults(gg.getResultsCount())
for i, v in ipairs(results) do
  if v.value % 10 ~= 1 then
    results[i] = nil
  end
end
gg.loadResults(results)
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.