# Does anyone know what the return block does

**URL:** https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912
**Category:** Help
**Created:** [July 12, 2026, 8:45pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912 "2026-07-12T20:45:34Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/35216_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)
#### Post date: [July 12, 2026, 8:45pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/1 "2026-07-12T20:45:34Z")

</div>

I have no idea what it does and it is driving me nuts

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [July 13, 2026, 5:13pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/2 "2026-07-13T17:13:00Z")

</div>

It is how you return a value in a function!

> **[return block](https://arcade.makecode.com/S61833-72071-92121-16622)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Look inside the project, and you can figure out how it works.

---

<div class="post-metadata">

### Author: ![ScriptScraper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/scriptscraper/32/35438_2.png) [@ScriptScraper](https://forum.makecode.com/u/ScriptScraper)
#### Post date: [July 13, 2026, 5:16pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/3 "2026-07-13T17:16:26Z")

</div>

so a return block is supposed to be used inside a function, but it has other uses too. So let’s say you have a function, and at the end of it, it has “return 0”. That function can now be used as a number for if statements, math blocks, etc. It exists so that you can condense complex formulas into a single statement. For example, you can have a function that calculates the player’s position or something, and have it return that value at the end. You can simply use that function as a number instead of copying the entire formula. If you click the minus button in the return block, it’ll return nothing. This can be used anywhere, and all it does is just exit the current function/block immediately. It’s not necessary, but it can be used to cut down on large if/else blocks.

hope this helps!

---

<div class="post-metadata">

### Author: ![Astro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/astro/32/35479_2.png) [@Astro](https://forum.makecode.com/u/Astro)
#### Post date: [July 13, 2026, 5:19pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/4 "2026-07-13T17:19:28Z")

</div>

It lets you turn functions into the oval blocks you put in number parts

---

<div class="post-metadata">

### Author: ![KawaiiGoddess](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kawaiigoddess/32/33722_2.png) [@KawaiiGoddess](https://forum.makecode.com/u/KawaiiGoddess)
#### Post date: [July 13, 2026, 5:19pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/5 "2026-07-13T17:19:52Z")

</div>

Returns the function itself.

---

<div class="post-metadata">

### Author: ![CodaKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codaknight/32/33491_2.png) [@CodaKnight](https://forum.makecode.com/u/CodaKnight)
#### Post date: [July 13, 2026, 5:19pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/6 "2026-07-13T17:19:59Z")

</div>

Yeah, the `return` block doesn’t really make sense when you first see it.

Think of it like asking someone a question. If you ask, “What’s 2 + 3?”, the answer they give back is **5**. A function with a `return` works the same way—it sends a value back to whatever called it.

For example, if you have a function that calculates a player’s score, using `return` lets the function give that score back so you can use it somewhere else in your code.

So instead of just _doing_ something, a function with `return` _gives something back_.

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [July 20, 2026, 8:39pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/7 "2026-07-20T20:39:54Z")

</div>

@Richard what are the actual name for them I always called them bubbles but I’ve heard oval and circle too

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [July 21, 2026, 4:41pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/8 "2026-07-21T16:41:06Z")

</div>

the official name is the somewhat cumbersome “reporter blocks”, which i’ve always hated.

i just call 'em blocks with return values, or sometimes “expression” blocks

---

<div class="post-metadata">

### Author: ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/35216_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)
#### Post date: [July 24, 2026, 5:45pm UTC](https://forum.makecode.com/t/does-anyone-know-what-the-return-block-does/44912/9 "2026-07-24T17:45:18Z")

</div>

OMG richard just talk on my post.
