blockly input inline

229 views
Skip to first unread message

Lam Nguyen Xuan

unread,
Feb 23, 2022, 4:40:43 AM2/23/22
to Blockly
hello. I have to category on toolbox and i want not allow blockly in category (logic) input blockly in category (action)

Screen Shot 2022-02-23 at 4.37.35 PM.png

Lam Nguyen Xuan

unread,
Feb 23, 2022, 4:43:59 AM2/23/22
to Blockly
this code block 1 and 2 

Screen Shot 2022-02-23 at 4.39.48 PM.png
Screen Shot 2022-02-23 at 4.41.55 PM.png

Jonty Small

unread,
Feb 23, 2022, 10:16:01 AM2/23/22
to Blockly
Hi,

Have a look into checks.

you should likely set your .setcheck to a string you're looking for e.g. "text", it can be an array e.g. ["text", "Boolean", "Number"]
and then set the output of your second block to something not covered in that string.
Types can be literally anything but there are a few default ones blockly uses so don't be too creative.

Best,
Jonty

Lam Nguyen Xuan

unread,
Feb 23, 2022, 9:54:03 PM2/23/22
to Blockly
hi  Jonty.
I am very grateful for your help. Thank you!
Best
Lam
Reply all
Reply to author
Forward
0 new messages