mBlock bug with answer & variable


#1

Hello,
we tested a program and in Scratch and mBlock it doesn’t work the same. When I type ‘5’, the answer is correct in Scratch:
Image 001
Image 002

But with mBlock it doesn’t work:


Any idea ???


#2

Hi sebseb,

I confirm, not the same behavior as Scratch.

mBlock Version 4.0.3 : Problem
mBlock Version 4.0.4 : Problem
mBlock Version directly on the internet : Problem
Scratch : All is functionnal
err


#3

Hi,
the answer is treated as a string. So you have a string addition. “5” + “6” = "56"
You´ll need a second variable. Then the mBlock is treating it as two integers, as you want:

image

The “say …”-block is never seen by the user. So you don´t need it.


#4

Hi Jeedrik,

I understood how it worked and we did not convert to digital but Scratch works otherwise. Scratch seems to work by default in digital. Since mBlock is based on Scratch of MIT, it should work as Scratch.
err

In my opinion.I believe that Makeblock should adjust the mBlock to work as close as possible to Scratch.


#5

Hi All,

We have forwarded this to our R&D department. Thanks for all the feedback!