Jump to content
  • 0

get the value


Starter1

Question

Posted

I have a list of values obtained through the gg.searchNumber command.How do I write out a condition if the number in the first position of the list is less than zero, then script:unload()?considering also that I'm looking for a text

1 answer to this question

Recommended Posts

Posted

when you use searchNumber() save the result in a table and use index in the condition
example : 
gg.searchNumber('yournumber')
t = gg.getResult(gg.getResultCount())
if t[1].value == 0 then script:unload() end

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.