Having some issue. This issue is basically from a topic which has been mentioned before but it seemed for the best to create a new topic. Just in case if you need old topic for follow up with new one. But script has by now been improved based on current knowledge obtained.
The script is supposed to count the length of the string. And if the condition is met it has to put the sub table in to the new table named "firstTable"
a = gg.getResults(4)
firstTable ={}for k, t in pairs(a)doif string.len(t.value)<=6then
firstTable[#firstTable +1]= t
endend
print("firstTable: ", firstTable)
It does work as you can see in the screenshot but not really as accurate as i want to. It returns the entire length of the string but i need it to return the length of the string starting from the decimal separator so that i can place a more appropriated condition on the key values.
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.
Question
Platonic
Having some issue. This issue is basically from a topic which has been mentioned before but it seemed for the best to create a new topic. Just in case if you need old topic for follow up with new one. But script has by now been improved based on current knowledge obtained.
The script is supposed to count the length of the string. And if the condition is met it has to put the sub table in to the new table named "firstTable"
It does work as you can see in the screenshot but not really as accurate as i want to. It returns the entire length of the string but i need it to return the length of the string starting from the decimal separator so that i can place a more appropriated condition on the key values.
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.