Help with my for variable = (1) to (10) block

so I'm trying to make a custom block


and I had that problem.
please help!

You need to use the create variables library if you want to do that

image

[scratchblocks] run ({set [ v] to (i)}@addInput::grey ring) with inputs (variable)@delInput@addInput::control [/scratchblocks]

thank you!

you can use an upvar for variable instead of having to type in a variable name. then you can use set on the variable and the caller can use the variable in the action

my point was i was making an non-upvar version

Why do you want to do that?

for fun :~)

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