# Return Help

**URL:** https://forum.makecode.com/t/return-help/7827
**Category:** Help
**Created:** [May 4, 2021, 3:35pm UTC](https://forum.makecode.com/t/return-help/7827 "2021-05-04T15:35:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)
#### Post date: [May 4, 2021, 3:35pm UTC](https://forum.makecode.com/t/return-help/7827/1 "2021-05-04T15:35:17Z")

</div>

When do I use the Return in a function? And what do I have to put in it?

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [May 4, 2021, 4:23pm UTC](https://forum.makecode.com/t/return-help/7827/2 "2021-05-04T16:23:50Z")

</div>

As to not start another 100-post topic, you can read this thread:

> [@What does the return 0 block does](https://forum.makecode.com/t/what-does-the-return-0-block-does/3204):
>
> [image] What does it do?

Although it is quite long so you may want to reserve some time for it. 😆

The gist: In math you can have functions like `f(x) = x * 2`. `x` would be a parameter and if we put in `2` for x we would get `4`. That’s what the `return` block does, except you can return _anything_ from a function, including sprites and strings and arrays and whatever! In the functions list there will be a circle version of any function with a `return <value>` block in it.

---

<div class="post-metadata">

### Author: ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)
#### Post date: [May 4, 2021, 4:27pm UTC](https://forum.makecode.com/t/return-help/7827/3 "2021-05-04T16:27:47Z")

</div>

Also! How do I make sevenseg counter relative to camera?

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [May 4, 2021, 4:50pm UTC](https://forum.makecode.com/t/return-help/7827/4 "2021-05-04T16:50:52Z")

</div>

☹ Tried using the set flag function on it, didn’t work. I would ask the creator of that extension but I don’t know who made that extension either 😅
