Non-string defaults?

So, I'm working on a block with expandable defaults like they do in MQTT.

For now, it turns from my block @addInput :: reporter operators to my block test val <> @delInput :: reporter operators. However, I want to set test val's default to <t> :: reporter operators instead of just <> :: reporter operators.

How do I accomplish this?

I don't know the answer to your question, but... is that a custom block color? The white text is illegible against it.

Nope, it's just Snapblocks. Caught someone off-guard with pretty Snapblocks again, huh? :slight_smile:

It is snapblocks, and maybe the reason why it looks illegible, is because the snapblocks svg has a higher resolution than snap, so the dropshadow might be a tad off, even though I used the same measurements as snap.

I don't think you can at the moment

That's why I used true/false text values in the MQTT blocks (that can be overridden by inserting the Snap! boolean reporter.)

image

When Jens starts work on V11, I'm hoping we can have something like <true> in the default options and Snap! will translate that to the proper boolean block