# OMG life is so much better

**URL:** https://forum.makecode.com/t/omg-life-is-so-much-better/597
**Category:** EV3
**Created:** [October 9, 2019, 3:05pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597 "2019-10-09T15:05:02Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jeff](https://forum.makecode.com/u/Jeff)
#### Post date: [October 9, 2019, 3:05pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/1 "2019-10-09T15:05:02Z")

</div>

control.reset()

This causes the program to exit. I’m having all the kiddos add this to the bottom of their code.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [October 9, 2019, 3:39pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/2 "2019-10-09T15:39:54Z")

</div>

Something like this?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/8eb5ca14f4089ec9aeb848fc951a2faa980aec2e.png)

---

<div class="post-metadata">

### Author: ![Jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jeff](https://forum.makecode.com/u/Jeff)
#### Post date: [October 9, 2019, 3:47pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/3 "2019-10-09T15:47:46Z")

</div>

Yes it would make more sense to have something under brick instead of me randomly finding it under advanced control reset. I would suggest “Exit Program” more implicit. Also shouldn’t be under Power should go next to Clear screen

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [October 9, 2019, 4:05pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/4 "2019-10-09T16:05:02Z")

</div>

How about buttons? it’s a button after all.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/b490e49328178a912815e4161763db85d2d149b2.png)

---

<div class="post-metadata">

### Author: ![Jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jeff](https://forum.makecode.com/u/Jeff)
#### Post date: [October 9, 2019, 4:28pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/5 "2019-10-09T16:28:08Z")

</div>

Yes that sounds logical. Just having it anywhere in brick and named exit program will make it way more discoverable

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [October 9, 2019, 5:18pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/6 "2019-10-09T17:18:30Z")

</div>

It will go in beta soonish. /beta is based on pxt v5 so you’ll get functions with arguments as well.

---

<div class="post-metadata">

### Author: ![Walt.White](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/walt.white/32/424_2.png) [@Walt.White](https://forum.makecode.com/u/Walt.White)
#### Post date: [October 27, 2019, 11:26pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/7 "2019-10-27T23:26:15Z")

</div>

Two questions:

1. When will “exit program” appear with the offline app? I’ve had 10 year old kids get confused with the downloading + dragging process and would like to try using the offline app in a classroom setting because it looks like it downloads directly to the EV3.

2. This “exit program” really is important for the kids to be able to connect their code with the robot’s performance. Tomorrow I start a new group and am telling them to use the Getting Started --\> Try series of lessons as their first exposure to the EV3.

Yet the second Try exercise is to connect a large motor and have it turn one revolution. The lesson gives them the code and tells them to download and run it and then asks if the motor turned one rotation before stopping.

And the motor doesn’t stop! Without the “exit program” block the motor just keeps turning when they follow the online instructions, and they’re confused. Also, the simulator stops after one rotation but the robot doesn’t, another source of confusion for beginning students.

Will this online lesson get updated to add the “exit program” block?

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [October 28, 2019, 4:42am UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/8 "2019-10-28T04:42:43Z")

</div>

“Exit Program” is availabe in the latest released editor 1.2.26 (and the offline editor as well). I will see about fixing the “Try” lesson.

---

<div class="post-metadata">

### Author: ![Walt.White](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/walt.white/32/424_2.png) [@Walt.White](https://forum.makecode.com/u/Walt.White)
#### Post date: [October 30, 2019, 2:31am UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/9 "2019-10-30T02:31:09Z")

</div>

Could be “my bad” here. I was in a hurry to get ready for the new group of kids and now that I’m getting my notes in order it looks like my program that won’t stop has an error. I don’t have the EV3 with me right now, but I should get time tomorrow to double-check my code.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [October 30, 2019, 4:07am UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/10 "2019-10-30T04:07:57Z")

</div>

If you find, click share and send us the link!

---

<div class="post-metadata">

### Author: ![Walt.White](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/walt.white/32/424_2.png) [@Walt.White](https://forum.makecode.com/u/Walt.White)
#### Post date: [November 4, 2019, 7:57pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/11 "2019-11-04T19:57:37Z")

</div>

OK, now the tutorial to turn the motor one revolution works. This is good. I’m trying to be more methodical with my testing and have been able to repeat the endless turning: by setting the number of rotations to 0!  
I’m restarting the simulator with every test now and that has helped. But the endless turning is repeatable and it’s the same on the simulator and on the EV3:

![About](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/64c799440010082639127baf33538285a18b176b.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/acb074a17884610b135c78311ab663784d042aff.png)

And it makes sense: there is no “stop” condition so it’s like just turning the motor on.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [November 4, 2019, 9:56pm UTC](https://forum.makecode.com/t/omg-life-is-so-much-better/597/12 "2019-11-04T21:56:47Z")

</div>

We probably confuse “undefined” and “0” in our code to determine if a rotation is provided or not. We should correctly handle 0 as do nothing and stop. Thanks for digging.
