Drop downs that adds slots when you select an item

A special slot type that adds slots when certain options are chosen defined in “options” menu

  • adding a number creates a slot of that type
  • adding ‘.’ directly after a number(or by itself if using grouping) makes it multi input
  • adding ‘{‘ ‘}’ after the number allows you to change slot options
  • adding text creates a label

Multi-type exclusive:

  • adding ‘#’ with a number at the end of a line limits the number of times you can use it
  • adding ‘|’ at the end of a line makes it so you cannot select another option after it

Examples:

If block (multi-type)

else if= 2 5
else = 2 |

no input

else if

else

New Color block (single-type)

HSL: 1.{max_slots: 4, expand: [hue, saturation, brightness, transparency], defaults: [0, 100, 100, 0]}

RGB: 1.{initial_slots: 3, min_slots: 3, max_slots: 4, defaults: [255, 255, 255, 255]}

name: 0{options: [“red”, “orange”, “yellow”, “green”, “blue”, “purple”], read_only: true}

no input

HSL

RGB

name

I am not sure what you WANT to do with it. could you clarify?
Ok so I saw the category

I’d rather not introduce another esoteric text language, I’d instead like it more if you can just program it with snap.

I agree. The current state of metaprogramming is that you more or less have to be Jens to do it, more or less deliberately. i think this would be a fruitful field for macrology.