Gamer (ex-Cantavanda)
〜Flower Prince〜
The return statement, what does it do?
Hiya! I've been busy learning GML recently, and if there's one thing I don't understand, and just can't find a clear answer for (manual, forums) it's what the term returning a value means, and what the return statement does. Could someone explain it in really simple vocabulary? (No programming terms)
This problem also makes other things unclear, like for example the difference between value++ and ++value is "returning it first", or I can't understand the modulo operator because it revolves around returning.
To where is it returning it? What does it return? And so on.
Hiya! I've been busy learning GML recently, and if there's one thing I don't understand, and just can't find a clear answer for (manual, forums) it's what the term returning a value means, and what the return statement does. Could someone explain it in really simple vocabulary? (No programming terms)
This problem also makes other things unclear, like for example the difference between value++ and ++value is "returning it first", or I can't understand the modulo operator because it revolves around returning.
To where is it returning it? What does it return? And so on.