Discuss Scratch

IndexErrorException
Scratcher
500+ posts

New string manipulation blocks/reporters!



What this does is separate text or numbers by the separator.

EXAMPLE: “hello,hi,how you doing today” and the separator is the commas.

RESULT: A table containing this:
1. hello
2. hi
3. how you doing today
IndexErrorException
Scratcher
500+ posts

New string manipulation blocks/reporters!



This one is simpler. It will take in text and return the text but its all capitalized or lowercase. If a number were to be put inside, it wouldn't do anything to the number.

EXAMPLE: uppercase(hello, minecraft was released in 2009.)

RESULT: HELLO, MINECRAFT WAS RELEASED IN 2009.
CST1229
Scratcher
1000+ posts

New string manipulation blocks/reporters!

The split reporter would need to report a list, which (list outputs) is not something in Scratch. This block would better belong in Snap! (in fact it's already a thing there), or it could just be a list block:
set [list v] to split text [] by [] :: list

Last edited by CST1229 (April 3, 2021 18:38:36)


This is a signature. It's a piece of text that appears below every post I write. Click here to learn more, including how to make your own.
RIP assets image hosting. 2013?-2023



the2000
Scratcher
1000+ posts

New string manipulation blocks/reporters!

Please don't make lists of suggestions; if you're throwing out multiple suggestions in a single thread then you probably didn't put that much thought into them, and it's better for discussion to give each idea its own thread.

cruncherBones
Scratcher
500+ posts

New string manipulation blocks/reporters!

the2000 wrote:

Please don't make lists of suggestions; if you're throwing out multiple suggestions in a single thread then you probably didn't put that much thought into them, and it's better for discussion to give each idea its own thread.
It is related


THE TRUE HIPPO ON SCRATCH


platfomer coming soon

funny by my m8

the2000
Scratcher
1000+ posts

New string manipulation blocks/reporters!

cruncherBones wrote:

the2000 wrote:

Please don't make lists of suggestions; if you're throwing out multiple suggestions in a single thread then you probably didn't put that much thought into them, and it's better for discussion to give each idea its own thread.
It is related
Not the same, though. The “uppercase” and “lowercase” blocks might be related, but just being in the same category as the split block wouldn't make them “related”.

cruncherBones
Scratcher
500+ posts

New string manipulation blocks/reporters!

the2000 wrote:

cruncherBones wrote:

the2000 wrote:

Please don't make lists of suggestions; if you're throwing out multiple suggestions in a single thread then you probably didn't put that much thought into them, and it's better for discussion to give each idea its own thread.
It is related
Not the same, though. The “uppercase” and “lowercase” blocks might be related, but just being in the same category as the split block wouldn't make them “related”.
They are both in operators thus related thus I am right and this thread should stay!!!


THE TRUE HIPPO ON SCRATCH


platfomer coming soon

funny by my m8

the2000
Scratcher
1000+ posts

New string manipulation blocks/reporters!

cruncherBones wrote:

the2000 wrote:

Not the same, though. The “uppercase” and “lowercase” blocks might be related, but just being in the same category as the split block wouldn't make them “related”.
They are both in operators thus related thus I am right and this thread should stay!!!
Is that a fdreerf funny I see? Again, being in the same category does not make them related. The camera blocks and the "touching color []" blocks were in the sensing category back in 2.0, but that doesn't mean that you could've suggested stuff for them together.

cruncherBones
Scratcher
500+ posts

New string manipulation blocks/reporters!

the2000 wrote:

cruncherBones wrote:

the2000 wrote:

Not the same, though. The “uppercase” and “lowercase” blocks might be related, but just being in the same category as the split block wouldn't make them “related”.
They are both in operators thus related thus I am right and this thread should stay!!!
Is that a fdreerf funny I see? Again, being in the same category does not make them related. The camera blocks and the "touching color []" blocks were in the sensing category back in 2.0, but that doesn't mean that you could've suggested stuff for them together.
They are related they are same category!

All blocks in the same category are related as they are the same colour


I did not get that from fdreerf I got it from Prime99


THE TRUE HIPPO ON SCRATCH


platfomer coming soon

funny by my m8

the2000
Scratcher
1000+ posts

New string manipulation blocks/reporters!

cruncherBones wrote:

the2000 wrote:

Is that a fdreerf funny I see? Again, being in the same category does not make them related. The camera blocks and the "touching color []" blocks were in the sensing category back in 2.0, but that doesn't mean that you could've suggested stuff for them together.
They are related they are same category!

All blocks in the same category are related as they are the same colour
I can't tell if you're being serious or sarcastic. Which are you?

dertermenter
Scratcher
1000+ posts

New string manipulation blocks/reporters!

the2000 wrote:

cruncherBones wrote:

the2000 wrote:

Is that a fdreerf funny I see? Again, being in the same category does not make them related. The camera blocks and the "touching color []" blocks were in the sensing category back in 2.0, but that doesn't mean that you could've suggested stuff for them together.
They are related they are same category!

All blocks in the same category are related as they are the same colour
I can't tell if you're being serious or sarcastic. Which are you?
Serious probably, as I agree. If they are in the same category they are related


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
the2000
Scratcher
1000+ posts

New string manipulation blocks/reporters!

dertermenter wrote:

the2000 wrote:

I can't tell if you're being serious or sarcastic. Which are you?
Serious probably, as I agree. If they are in the same category they are related
See my example in the earlier post. Would you seriously consider video sensing and the “touching color” boolean to be “related”? They were in the same category, you know….

dertermenter
Scratcher
1000+ posts

New string manipulation blocks/reporters!

the2000 wrote:

dertermenter wrote:

the2000 wrote:

I can't tell if you're being serious or sarcastic. Which are you?
Serious probably, as I agree. If they are in the same category they are related
See my example in the earlier post. Would you seriously consider video sensing and the “touching color” boolean to be “related”? They were in the same category, you know….
True, what they do are different, so yeah, I now agree with you


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
IndexErrorException
Scratcher
500+ posts

New string manipulation blocks/reporters!

I did put some thought into these blocks. I do like @CST1229's block idea. I think that makes more sense for 4.0.

I also put some work into making the blocks. I used scratchblocks.

The true block would look like

Last edited by IndexErrorException (April 3, 2021 20:12:53)

Harakou
Scratcher
1000+ posts

New string manipulation blocks/reporters!

I believe the split block has been suggested here: https://scratch.mit.edu/discuss/topic/26936

And the uppercase/lowercase one here: https://scratch.mit.edu/discuss/topic/173757

Please use the existing threads here for discussion of these ideas.

In general, it is a good idea to separate different ideas that don't necessarily rely on one another into different threads, so that it's easier to organize things. However, let's not get too hung up on it, since as you can see here it's easy to spend more time arguing about it than actually discussing the idea. The forum rules are meant to let good discussion flourish - if enforcing them is getting in the way of that, then maybe it's a sign it's going too far.

Powered by DjangoBB