Make "set" and "change" hyperizable

[scratchblocks]
set (list [1] [2] [3] :: list) to (5)
change (list [1] [2] [3] :: list) by [5]
[/scratchblocks]

you can't put reporters in that dropdown anyway.

untitled script pic (82)
untitled script pic (81)

@programmer_user I don't understand what this is supposed to do. Even if @dardoro is right about the value you're trying to compute, there'd be nothing pointing to that value. Every time you call LIST you get a new list, even if the inputs are the same as last time. So even if it did something, the something would be unavailable afterward.

uh, you just misunderstood the suggestion.

I feel like he is requesting setting a list of variables to one value. Creating a block that does that is super easy.

Brian, OP probably just makes an abbreviation
untitled script pic (20)
untitled script pic (19)

@bh @dardoro

untitled script pic (21)

That's setting a variable to a list of values, not setting a list of variables to a single value.

but if it were to be like that it would just say
the variable (whatever you put in there) does not exist in this context

then you would put names of variables that do exist.

then what's the point when you have a dropdown of all of the variables anyway?

There is really no notion of variable reference so no variables list.
untitled script pic (23)
it's shortcut to prebuilt reporter of variable value. So there is really no way to pointing to a variable without JS. But witth abuse of "Create variables" library ...
let_be script pic ...
Z is declared as global variable.

if you have a list of upvars, you don't need to use the create variables library to create new variables. Upvars create new variables if that variable doesn't exist already.

So there IS a way to reference a variable...

With the "x..." declared as "Multiple ...", "Any (unevaluted)"
let_be script pic
it can be used as simply as (global z)
let_be script pic (1)


in Snap?

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