break
#2

break is simply the function that terminates a loop. If you want the loop to stop and return a value, you must use 'return'.

break - Stops a loop completely.
return - Stops a loop completely, but the function overall will return the given value.

https://sampwiki.blast.hk/wiki/Control_Structures#break
https://sampwiki.blast.hk/wiki/Control_Structures#return
Reply


Messages In This Thread
break - by speed258 - 18.12.2013, 12:23
Re: break - by Threshold - 18.12.2013, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)