Custom block detection

is there any code I can use to make a [scratchblocks] is ({ a block } :: grey ring) a custom block? :: operators boolean [/scratchblocks] block?

There is probably some fancy JS code to do it, I don't think you can do it in Snap!

There's a JS property of rings called isCustomBlock, but sadly it's just a red herring and always reports false.

function(ring) {return ring.expression.selector == "evaluateCustomBlock";}


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.