So I’m not new to snap but I’m still new to custom block making. Before I start testing and possibly just waste time; I wanna ask if this is even possible.
I want to make a custom command block that combines
[if [ (answer) = (text) ] ]
{condition script}
and let it have multiple inputs, like the little arrow that allows you to do an “Else if” but have it be an “And if” instead of “Else if”
I can try to explain in a different way if needed, but I am wondering is this possible?
But the notation for making an input group (such as grouping a Boolean input slot and a C-slot) is pretty hideous, because Jens doesn’t think anyone should do it except himself. :~( If you’re new to custom blocks, that’s not the one you should start with, imho.
Im not starting with this as my first custom block, Im just not used to using the command customizations or any of the menu items.
also, yes, that is what I have been using lol, I’m just wondering if it’s possible to turn that into a custom block to make my coding a little bit easier.
Don’t feel stupid, it’s completely undocumented, snap doesn’t show it, and I first learned about it when jens mentioned it on the forum (and I’m pretty sure bh also didn’t know about it until then).
There should be a graphical user interface. You should be able to set the type of an input to “input group,” in which case what appears in the block prototype is a rectangle with black border and filled with the color of the custom block you’re building (or alternatively, you can think of it as having a transparent interior. Inside the rectangle would be a plus sign, which you can click to put an input slot or title text in the input group. I guess the rectangle has to be enclosed in an orange oval like an input slot name, with a “…” after the rectangle because the whole point is that the group can be repeated.
I mean, this is just off the top of my head, but you get the idea: you should be able to add inputs and title text in an input group the same as you can in the entire block.