Jump to content
  • 0

Help for loop issue


SelviaApr_

Question

How to call value inside loop function with print? Like in my photos..

The first picture i put the print inside looping and it's work, the second picture i put print outside looping and doesn't work as i want, so i want to save the results to my internal storage with io.open how to make it?

20220811_070334.png

20220811_070430.png

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

3 hours ago, SelviaApr_ said:

How to call value inside loop function with print? Like in my photos..

The first picture i put the print inside looping and it's work, the second picture i put print outside looping and doesn't work as i want, so i want to save the results to my internal storage with io.open how to make it?

20220811_070334.png

20220811_070430.png

local textTable = {}
for i = 1,10 do
    table.insert(textTable, 'v['..i..'].address')
end
print(textTable)

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.