toto89
2012-03-07 15:29:21
I've been mapping out a script (my first script) and I'm trying to determine what would be practical; a procedure, or a function?
I know the difference between a procedure and a function (minimally). A procedure is basically a function without the return value. My question to Villavu is: If I'm making a Runescape script, when would a function be better to use than a procedure?
I'm aware that both can be used pretty much interchangeably, so, when would a return value be more useful than no return value?
All answers are appreciated.
I know the difference between a procedure and a function (minimally). A procedure is basically a function without the return value. My question to Villavu is: If I'm making a Runescape script, when would a function be better to use than a procedure?
I'm aware that both can be used pretty much interchangeably, so, when would a return value be more useful than no return value?
All answers are appreciated.