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:
But with mBlock it doesn’t work:
Any idea ???
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:
But with mBlock it doesn’t work:
Any idea ???
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
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:
The “say …”-block is never seen by the user. So you don´t need it.
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.
In my opinion.I believe that Makeblock should adjust the mBlock to work as close as possible to Scratch.