scratch-gui icon indicating copy to clipboard operation
scratch-gui copied to clipboard

My blocks "return" block

Open samuellouf opened this issue 2 years ago • 2 comments

I have a small question about this extension, can we edit it so that a block can also return booleans. I know that a can use "Couplers" to transform a string into a boolean but in would be nice if the vm did it by itself. It (the vm) can tell if a "return" block is in the definition of a block definition to change the shape. Maybe the vm could transform the output block into a boolean if, for exemple, the content of every return block is true or false.

samuellouf avatar Jul 30 '23 17:07 samuellouf