Closed mo-patel closed 6 years ago
You attempting are connecting a number block or a text block to a boolean input. Since these connections are incompatible, this is the correct behavior. Perhaps you want
if (numberValue != 0) { ... }
or
if (text.length == 0) { ... }
When the numeric or text input blocks are connected to a set of existing blocks, the input does not connect properly. when dragging, the yellow indicator which highlights a possible connection does not appear either. Due to this issue, when the code generator is ran, the number input that does not connect always appears at the end of the code.
Also, When the block is dropped, the number input changes into a long number automatically which can be seen in the picture below
.
The scenario can be replicated by using AbstractBlocklyActivity with demo_workspace