# How function "return" works?!

**URL:** <https://forum.kirupa.com/t/how-function-return-works/325544>\
**Category:** Uncategorized\
**Created:** [October 21, 2011, 7:09pm UTC](https://forum.kirupa.com/t/how-function-return-works/325544 "2011-10-21T19:09:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrhartsclube](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mrhartsclube](https://forum.kirupa.com/u/mrhartsclube)\
**Post date:** [October 21, 2011, 7:09pm UTC](https://forum.kirupa.com/t/how-function-return-works/325544/1 "2011-10-21T19:09:18Z")

</div>

hi freands  
i have a function like:

> [COLOR=#0000ff]function [/COLOR][COLOR=#008000]FuncName /COLOR:[COLOR=#0000ff]Boolean[/COLOR]{[INDENT][COLOR=#0000ff]for /COLOR{  
> [/INDENT]  
> [INDENT=2][COLOR=#0000ff]if /COLOR{  
> [/INDENT]  
> [INDENT=3][COLOR=#0000ff]return true[/COLOR];  
> [/INDENT]  
> [INDENT=2]}  
> [/INDENT]  
> [INDENT]}  
> [COLOR=#0000ff]return false[/COLOR];  
> [/INDENT]  
> }

i want to know if the “return” breaks the function and jumps out or not!  
i mean if this function returns true it continues and returns false or halts?
