# I'm having a problem

**URL:** <https://forum.makecode.com/t/im-having-a-problem/19531>\
**Category:** Help\
**Created:** [May 1, 2023, 12:11am UTC](https://forum.makecode.com/t/im-having-a-problem/19531 "2023-05-01T00:11:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![soggy-rope9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soggy-rope9/32/8454_2.png) [@soggy-rope9](https://forum.makecode.com/u/soggy-rope9)\
**Post date:** [May 1, 2023, 12:11am UTC](https://forum.makecode.com/t/im-having-a-problem/19531/1 "2023-05-01T00:11:23Z")

</div>

I’m having a problem with my program. When I go in level 2, I can’t stop the forever container with the if block. It just keeps teleporting me to start. Please help!

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 1, 2023, 4:55pm UTC](https://forum.makecode.com/t/im-having-a-problem/19531/2 "2023-05-01T16:55:49Z")

</div>

Do you think you could post the link for the game? Being able to see the game’s code can help people figure out the problem.

---

<div class="post-metadata">

**Author:** ![soggy-rope9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soggy-rope9/32/8454_2.png) [@soggy-rope9](https://forum.makecode.com/u/soggy-rope9)\
**Post date:** [May 1, 2023, 6:40pm UTC](https://forum.makecode.com/t/im-having-a-problem/19531/3 "2023-05-01T18:40:18Z")

</div>

Sorry i forgot: [https://arcade.makecode.com/S85576-55918-62687-68672](https://arcade.makecode.com/S85576-55918-62687-68672)

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 1, 2023, 6:59pm UTC](https://forum.makecode.com/t/im-having-a-problem/19531/4 "2023-05-01T18:59:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d14ab86d3e78ef9f662a87f85c9abf652c4909fd.png)  
You just have to change the level variable by 1 when the next level starts. Otherwise, the variable will always be equal to 2, so the forever function will keep repeating the code.

---

<div class="post-metadata">

**Author:** ![soggy-rope9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soggy-rope9/32/8454_2.png) [@soggy-rope9](https://forum.makecode.com/u/soggy-rope9)\
**Post date:** [May 2, 2023, 4:25pm UTC](https://forum.makecode.com/t/im-having-a-problem/19531/5 "2023-05-02T16:25:07Z")

</div>

Thanks. So that means level 3’s variable will be 4?

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 2, 2023, 4:40pm UTC](https://forum.makecode.com/t/im-having-a-problem/19531/6 "2023-05-02T16:40:42Z")

</div>

I guess so.
