Discuss Scratch
- Harakou
-
1000+ posts
split block
Merged a couple threads with the same/very similar ideas in this one.
- dhfbei8987
-
1000+ posts
split block
Queen of the page, on a side note. Merged a couple threads with the same/very similar ideas in this one.
But back to the actual topic, support, it would be useful for syllables, word splits, etc.
- guppyadrian
-
7 posts
split block
This is such a useful addition since many of my projects instead use a workaround that is very slow. Having a split function would also make nested lists much easier and faster.
- k0d3rrr
-
1000+ posts
split block
Bump. (A duplicate topic was posted.)
Anyways, I have nothing to add to this because although I know what this block does, some people might not understand how this should work.
Anyways, I have nothing to add to this because although I know what this block does, some people might not understand how this should work.
Last edited by k0d3rrr (March 29, 2022 21:07:45)
- Tunde123
-
1000+ posts
split block
At least add to the topic before bumping. Otherwise it would be considered necroposting. Bump. (A duplicate topic was posted.)
- k0d3rrr
-
1000+ posts
split block
I have fixed my post now.At least add to the topic before bumping. Otherwise it would be considered necroposting. Bump. (A duplicate topic was posted.)
- wh8199
-
53 posts
split block
Support. Also, I don't think the workaround would actually work, because
add (letter (split_i) of (string::custom)) to (list::custom)I know this would work with an existing list, but it would still be useful to have a block to do this.
add (thing) to [list v] // the list is a rectangle dropdown, you can't put variables in those
- scratchcode1_2_3
-
1000+ posts
split block
(#70)not to mention that the workaround is literally mildly complexno support, already workaroundable.(let's be polite pls) TON of official blocks are “already workaroundable”. not an excuse for it to not have its own separate block. workarounds can be a pain for some, can take up a chunk of the code leading to slower speeds and not a lot of people who are pros at scratch
when green flag clickedi'm not even sure if this works lol
set [string v] to [i,would,like,an,iced,mocha,with,whipped,cream]
delete all of [list v]
set [divideChar v] to [,]
set [i v] to (0)
add [] to [list v]
repeat (length of (string))
change [i v] by (1)
if <(letter (i) of (string)) = (divideChar)> then
add [] to [list v]
else
replace item (length of [list v] :: list) of [list v] with (join (item (length of [list v] :: list) of [list v]) (letter (i) of (string)
end