Is it possible to use a variable for dropdown options

so basically, i wan't something like this to happen
test var = list
1
2
3
i want the dropdown to have 1, 2, and 3.
is this possible?

yes... with js that is.

Yes and no. There's nothing supporting that particular feature, but you can put Javascript code in the options box and it can do anything it wants. It should return a list of the options. And it's subject to the same restriction as the JS Function block.

what code would get this to work

Umm I found a couple of threads about this:

https://forum.snap.berkeley.edu/t/how-do-i-make-a-custom-javascript-dropdown-in-custom-blocks/6158/2

Lol my rude project

casually links one of my threads

What was so rude about the project

It called you an idiot if you didn't listen to it

Ohhhhhhhhhhh that's why

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