FOR_ALL


This loop will repeat the code after do for each entry of a numbered table provided and it will also set the value for each table entry as the local variable names you give them after for.

for variable in all( table ) do
value a local variable name (used within this loop) that will hold the value data (right column data of the table)
table variable name of a numbered table

Example Table:


HighScores
john 143
bob 99
kim 984
for score in all( highscores )
	print( score )
end

-- prints: 10 143 984

105

18 Mar 2023

Font