Discuss Scratch
- Goodthingsaregood66
-
100+ posts
split blocks
Too confusing for my brain to understand, I don't get it.
Last edited by Goodthingsaregood66 (Oct. 11, 2020 23:43:18)
- mitdk
-
1000+ posts
split blocks
actual duplicatethis is not exactly what I am proposing, even though it is similar. that block has more than one output.
- mitdk
-
1000+ posts
split blocks
I don't get it.any ideas on how to make it simpler?(not trying to be rude) Too confusing for my brain to understand,
- cwkavery46304
-
29 posts
split blocks
i agree! cloud variables, lists, username… all complicated. that is Support, andnot a problem.A lot of things are complicated to beginning Scratchers. It may seem a little complicated to beginning Scratchers. Sorry, but no support. I may support it if the block name was easier to read.
support (split blocks)
- cwkavery46304
-
29 posts
split blocks
and the block name has to be complex! what else could you do?
has to be complex? <true>
- mitdk
-
1000+ posts
split blocks
Just letting you know, don't put in all the extra blocks. it's called blockspamming and the block name has to be complex! what else could you do?has to be complex? <true>
- Greg8128
-
500+ posts
split blocks
Maybe a block such as
split [] by [] and add to [list v] // split [abc.de.f] by [.] and add to [list v] would add "abc", "de", and "f" to [list] in that order.The advantage of this block would be that it would let you split large strings more efficiently: e.g. splitting an essay into words would require only one pass over the text instead of hundreds or possibly thousands
- mitdk
-
1000+ posts
split blocks
I actually like the idea! I will not replace my original suggestion though, even though i will add it to my suggestion. Maybe a block such assplit [] by [] and add to [list v] // split [abc.de.f] by [.] and add to [list v] would add "abc", "de", and "f" to [list] in that order.The advantage of this block would be that it would let you split large strings more efficiently: e.g. splitting an essay into words would require only one pass over the text instead of hundreds or possibly thousands
- cwkavery46304
-
29 posts
split blocks
Just letting you know, don't put in all the extra blocks. it's called blockspamming
ok
ok
- MartianSoil
-
100+ posts
split blocks
Maybe edit the original post so that the suggestion is a bit more clear.
- mitdk
-
1000+ posts
split blocks
good idea. Maybe edit the original post so that the suggestion is a bit more clear.
will do.
- cwkavery46304
-
29 posts
split blocks
mitdk I would now like these 2 blocks to be added(section() of split[] on character[]::operators)and:split [] by [] and add to [list v]::operatorscredit to Greg8128 for this idea(as you can see in the posts above)
maybe they should move some of the opperators blocks to a new section called ‘text’ that would also have your split blocks.
- Greg8128
-
500+ posts
split blocks
(pi::operators)is a rejected feature and can be implemented with([22]/[7])

- mitdk
-
1000+ posts
split blocks
I'm not sure.. we don't want to ask for too muchmitdk I would now like these 2 blocks to be added(section() of split[] on character[]::operators)and:split [] by [] and add to [list v]::operatorscredit to Greg8128 for this idea(as you can see in the posts above)
maybe they should move some of the opperators blocks to a new section called ‘text’ that would also have your split blocks.

Last edited by mitdk (Oct. 16, 2020 02:40:26)
- panda-wat
-
100+ posts
split blocks
Nice, as long as it doesn't crash if it sees these:
Lastly, I think that this is a little too advanced for a website geared toward eight year olds. but then again:
(section [3] of split [a.b] on character [.]::operators) // sections 3 and up do not existAlso, the stack block, if this reporter were to be made, would have an obvious workaround like this:
(section [1] of split [a.b] on character [Q]::operators) // that character is not in the input
(section [1] of split [a.b.c] on character [.]::operators) // multiple of that character are in the input
(section [1] of split [a.b] on character [ab]::operators) // this does not need an explanation.
add (section [] of split [] on character []::operators) to [list v]::list
Lastly, I think that this is a little too advanced for a website geared toward eight year olds. but then again:
([abs v] of ())
Last edited by panda-wat (Oct. 16, 2020 05:33:56)
- PkmnQ
-
1000+ posts
split blocks
They would report this: Nice, as long as it doesn't crash if it sees these:(section [3] of split [a.b] on character [.]::operators) // sections 3 and up do not exist
(section [1] of split [a.b] on character [Q]::operators) // that character is not in the input
(section [1] of split [a.b.c] on character [.]::operators) // multiple of that character are in the input
(section [1] of split [a.b] on character [ab]::operators) // this does not need an explanation.
(section (3) of split [a.b] on character [.]::operators) // would report an empty stringAnd here's some extras to help you understand better:
(section (1) of split [a.b] on character [Q]::operators) // would report "a.b"
(section (1) of split [a.b.c] on character [.]::operators) // would report "a"
(section (1) of split [a.b] on character [ab]::operators) // would report "a.b"
(section (1) of split [a.ab.b] on character [ab]::operators) // would report "a."
(section (2) of split [a.ab.b] on character [.]::operators) // would report "ab"
- Vibrato
-
1000+ posts
split blocks
Ehh, that one's pretty self-explanatory username… all complicated.
Last edited by Vibrato (Oct. 16, 2020 12:11:28)
- mitdk
-
1000+ posts
split blocks
Yes, all correct. and..They would report this: Nice, as long as it doesn't crash if it sees these:(section [3] of split [a.b] on character [.]::operators) // sections 3 and up do not exist
(section [1] of split [a.b] on character [Q]::operators) // that character is not in the input
(section [1] of split [a.b.c] on character [.]::operators) // multiple of that character are in the input
(section [1] of split [a.b] on character [ab]::operators) // this does not need an explanation.(section (3) of split [a.b] on character [.]::operators) // would report an empty stringAnd here's some extras to help you understand better:
(section (1) of split [a.b] on character [Q]::operators) // would report "a.b"
(section (1) of split [a.b.c] on character [.]::operators) // would report "a"
(section (1) of split [a.b] on character [ab]::operators) // would report "a.b"(section (1) of split [a.ab.b] on character [ab]::operators) // would report "a."
(section (2) of split [a.ab.b] on character [.]::operators) // would report "ab"
actually, i just seemed to think of another workaround. sorry @Greg8128 but i think i will remove the stack block. Nice, as long as it doesn't crash if it sees these:(section [3] of split [a.b] on character [.]::operators) // sections 3 and up do not existAlso, the stack block, if this reporter were to be made, would have an obvious workaround like this:
(section [1] of split [a.b] on character [Q]::operators) // that character is not in the input
(section [1] of split [a.b.c] on character [.]::operators) // multiple of that character are in the input
(section [1] of split [a.b] on character [ab]::operators) // this does not need an explanation.add (section [] of split [] on character []::operators) to [list v]::list
Lastly, I think that this is a little too advanced for a website geared toward eight year olds. but then again:([abs v] of ())
Thanks for all the support and suggestions.
set [ v] to []
repeat (length of [])
change [ v] by (1)
add (section (::variables) of split [text] on character [ ]::operators) to [list v]
end
Last edited by mitdk (Oct. 16, 2020 23:24:23)