Custom block <= : Label <= doesn't repeat when adding variadic inputs

Hi everyone, I’m trying to create a custom <= (less than or equal) block that mimics the behavior of the built-in < block, specifically supporting multiple parameters (variadic inputs).

While the internal logic works perfectly, I’m having an issue with the block’s appearance. When I click the arrows to add more input slots, the <= symbol does not repeat/expand alongside the new parameters (as shown in the image).

How should I modify the block definition to ensure the label appears between every input?

Thanks in advance for the help!

This is a bit more advanced in a custom block. Although…

untitled script pic 2

use separator, not expand :slight_smile:

untitled script pic 3

There’s already a block that does this.

But how to use separator?

Could you upload a screenshot?

Thanks!

Which library is this block in?
I couldn’t find it in the APL library.
Additionally, I still have no idea how to fix that bug.

Thank you very much!

It’s not in a library, just drag and drop a <[] < []> block out, tight click it, click relabel, and then you’ll see an option to relabel it to a <= block (as well as >= and !=).

you used expand, right? in that menu, there is “separator”

(make sure to choose “multiple inputs” slot)

right click a < or > or = block and click relabel.

not a bug :slight_smile:

Thank you very muchu!

Thank you very much!