Hello, I was wondering if it was possible to directly input a variable into a set()To(), specifically for a forEach()In() loop. Currently, you seem to only be able to do this with the drop-down menu, but that eliminates the possibility of using it in a loop. For example, below I want to set each variable (a, b, c, d, e) to “Hello!”.
However, the “item” variable doesn’t snap (ha, get it?) into the first parameter. The only other way to do the same thing would be to not use iteration at all, which would lead to seemingly unnecessary repetition. If there is a way around this or if I am not going about this correctly, I would appreciate the help. Thanks!
The key is that you might read @sathvikrias’s solution to mean set the item variable to Hello, not the value of item itself. I would recommend not using @sathvikrias’s setup simply for readability. The FAQ sums it up quite nicely:
Snap! just blocks that functionality? That seems very odd, especially if it works with a simple workaround.
Not so odd. We want to make it hard to put a variable in that slot casually (I was going to say “by accident” but that isn’t quite what I mean), but make it possible for an advanced user to do so with deliberation.