General > Developers Corner

Learning Lua... (Just a random post from a lua super noob.)

<< < (7/11) > >>

syn.:
I know it probably goes from 20 to 100 or 100 to 20 but I don't know what b does :p

JamminR:
Which, and how?

MrPresident:
The third variable (b in this case) is a step.
See if that helps you.

syn.:
you made a table with x which had 4 keys/values inside then with

--- Code: ---for n = x[3], x[2], b do
--- End code ---
you chose the 3rd and 2nd Key/value which I'm assuming means they go from one to the other. but i dont know what "b" does in the previously shown code. :-* lol nvm Pres just replied and since it's a step it would mean that it goes either20             100
30              90
40              80
50              70
60      or     60
70               50
80               40
90               30
100             20

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version