How do I add an argument to a ring?

So I have a custom block that accepts a command and a single upvar. Now, the command doesn't have the required var to run so when I say (upvar) for (2) secs it says "upvar", not the value the upvar was given. I'm completely lost here, can someone help?

NOTE: i realised you can set [upvar arg name V] to [cool value] but i'd still want to add an arg to the cmd cuz im planning to call it outside of the block where (upvar arg name isnt really defined.

I don't understand the problem. It sounds like you're doing something like this?
untitled script pic (6)

When I try that, the sprite indeed says 5, not "upvar."

Yeah but try adding that cmd to some list and call the cmd from a list and you want to modify the upvar. How would that be possible?

I solved my issue!
So I created a ring with an argument, set the upvar to the arg's value and called the command. Here's an example:

untitled script pic

Calling add command /[idfk] with args ((args)) { say (args) for [2] secs } :: control sets (very cool cmd) to ({set [b V] to (d) run (c) $verticalEllipsis$addInput} input names: ((d)) $delInput$addInput) which then I can do run (very cool cmd) with inputs [hello] $delInput$verticalEllipsis$addInput which says "hello"!

:~)

Is there an actual use for this, or are you just messing around with upvars?

There will be.

:~)

not to be that guy but i need hlep in How does Expand work for groups?

Yeah I saw that; I was actually hoping someone else would take that one who'd do a better job of explaining than I would. If nobody comes along soon I'll look at it again though.

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