# Makecode problem please help

**URL:** <https://forum.makecode.com/t/makecode-problem-please-help/24617>\
**Category:** micro:bit\
**Created:** [November 29, 2023, 6:04pm UTC](https://forum.makecode.com/t/makecode-problem-please-help/24617 "2023-11-29T18:04:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrFireHyper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mrfirehyper/32/12085_2.png) [@MrFireHyper](https://forum.makecode.com/u/MrFireHyper)\
**Post date:** [November 29, 2023, 6:04pm UTC](https://forum.makecode.com/t/makecode-problem-please-help/24617/1 "2023-11-29T18:04:12Z")

</div>

I have this code here [https://makecode.microbit.org/S67355-31276-04851-96966](https://makecode.microbit.org/S67355-31276-04851-96966)  
and it keeps showing 0 on forever before it shows its number and i have no clue how to fix it,  
Im using a microbit with the bbc inventors kit and also for some reasons theres a delay between the two micro-bits  
this is my assignment, if anyone has any suggests or wanna do it for me thanksss

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [November 30, 2023, 5:15pm UTC](https://forum.makecode.com/t/makecode-problem-please-help/24617/2 "2023-11-30T17:15:18Z")

</div>

If there are more than 0 cookies initially, you may want to set the number of cookies at the start.

If you don’t want it to show anything at all until there are cookies added, you could add in another variable to keep track of whether there have ever been cookies and use that to determine if a number should be shown or not. For example, you could name it `newCookieJar` and set it to `true` initially. You could look at each of your sections of code and consider if each section needs to use or change `newCookieJar` in some way.
