Status bar help

You can look at my code here: https://makecode.com/_0jTf12JFF3f2


please comment below to help me because I don’t understand

Hey,

The statusbar is a special kind of sprite that contains a value, so the error is trying to say that you can’t compare a sprite with a number. The little triangle has a message if you click on it:

To get the number out, you need to use the statusbar value block:

image

Here’s your code with the changed as an example: https://makecode.com/_cm208D4zb5A0

1 Like

Thanks!

1 Like