To add a value to an array on each loop, you can do the following:
main.m104 chars8 lines
In this example, the loop iterates 5 times and adds the values 1 through 5 sequentially to the array myArray. The end+1 notation appends the new value to the end of the array on each iteration.
gistlibby LogSnag