# Pause until doesn't work in python

**URL:** <https://forum.makecode.com/t/pause-until-doesnt-work-in-python/22944>\
**Category:** Arcade\
**Created:** [October 2, 2023, 4:42pm UTC](https://forum.makecode.com/t/pause-until-doesnt-work-in-python/22944 "2023-10-02T16:42:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aidan\_TDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aidan_tdev/32/10415_2.png) [@Aidan\_TDev](https://forum.makecode.com/u/Aidan_TDev)\
**Post date:** [October 2, 2023, 4:42pm UTC](https://forum.makecode.com/t/pause-until-doesnt-work-in-python/22944/1 "2023-10-02T16:42:52Z")

</div>

If i use a puase until block in my game (block editor) and switch to python i get a error on the pause until:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/54c5d011cb27413488da41aee568d13e00e5cc52.png)

this is really anoying if i want to remove an extension.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 3, 2023, 7:49pm UTC](https://forum.makecode.com/t/pause-until-doesnt-work-in-python/22944/2 "2023-10-03T19:49:17Z")

</div>

This was really strange, @Aidan_TDev, and probably a bug for the @MakeCode team and/or you could post as an issue here: [https://github.com/microsoft/pxt-arcade/issues](https://github.com/microsoft/pxt-arcade/issues)

Attempting to reproduce, I get working code in blocks and when translating back and forth between blocks and JavaScript:  
 ![Screenshot 2023-10-03 at 20.31.57](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/28ec1d59e2aa33cf782fec97e2393a8a837153cf.png)  
 ![Screenshot 2023-10-03 at 20.34.03](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/65978579198f9b947a06afea29c00589ad93dfd8.png)

But when trying to convert to Python, I get the same code as you with the error and _pass_ statement instead of my condition:  
 ![Screenshot 2023-10-03 at 20.34.34](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/14445d2b2b3c4788a288483573db3813efc2e48a.png)

If I on the other hand start out in Python and call the _pause\_until()_ function, I get a little different result with a _return False_ instead of the _pass_, corresponding to the blocks default False if no condition, but not as intuitive as both blocks and JavaScript as where to put the condition(al function):  
 ![Screenshot 2023-10-03 at 20.36.25](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0fee20c76c5d96605f1c9e6326f345034805f6b7.png)

I finally managed to discover where to put this condition i Python to get the code to work as intended:  
 ![Screenshot 2023-10-03 at 20.59.07](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0d44cedb80dd9a9ac902db7f0e5d06c2662c919e.png)

This converts correctly back to blocks, but not back to Pyton again, as you can try out here:

> **[sdfsdfsdf](https://arcade.makecode.com/53674-84168-44545-88331)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

> [@Aidan\_TDev](#):
>
> this is really anoying if i want to remove an extension

In the meantime, maybe you could switch to JavaScript instead of Python to remove an extension?

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 12, 2023, 5:08pm UTC](https://forum.makecode.com/t/pause-until-doesnt-work-in-python/22944/3 "2023-10-12T17:08:23Z")

</div>

Filed by @Aidan_TDev:

> <https://github.com/microsoft/pxt-arcade/issues/6106>
>
> If i use a puase until block in my game (block editor) and switch to python i ge…t a error on the pause until
> 
> !\[image\](https://github.com/microsoft/pxt-arcade/assets/137188145/22a54c7e-f86e-4287-89f9-bc68003b954d)
> 
> 
> - OS: Windows
> - Browser chrome
