When you are learning Small Basic programming, you may stack on your debugging. I recommend to utilize lots of resources about Small Basic as following steps.
“ You will get the best help if you provide enough information for someone to understand what it is you want help with and reproduce the problem easily - if they have to guess it can be frustrating from both sides. This often involves you working on a problem for a little bit first, then narrowing down the problem you are having to a small example (if possible). Then post the example code you are working on (or PUBLISH the ID) along with a clear description of what you expect to happen and what doesn't work.
source: "Asking a good question" section in PLEASE READ BEFORE POSTING