HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Skip Remaining Actions = return

04-03-2006, 02:55 PM#1
Thunder_Eye
Hi, I checked what the "Skip Remaining Actions" in GUI was in JASS, and noticed it was just "return"

So that is what stops the function? by returning nothing?

Also, as the functions stops when it reaches an "return", how can I return several things from one function? or is it not possible?
04-03-2006, 03:40 PM#2
phyrex1an
A return will stop the function (returning to the calling function or end the thread), if the function is 'returns nothing' then you can use an empty return. Else you have to return a vaule.

You can't return serval things from a function, but there is nothing that stop you from using a global to store extra vaules.

If you know alittle of math then you can also use a single integer to return serval boolean/integer vaules. As long as the vaules you want to return isn' to big...
04-03-2006, 04:06 PM#3
Thunder_Eye
Ok, good to know.