Discuss Scratch

Charles12310
Scratcher
1000+ posts

Case Sensitive Block

(CREDIT)

Case sensitivity could be sometimes difficult, and not everybody knows how to detect case sensitivity. The reason why it is difficult is becaus a lowercase letter will always be the same as its capital version, according to the Scratch editor.

<[D] = [d]> // reports true.

However, one way to solve this is to make a case sensitive boolean:

<case sensitive [] = [] :: operators >

This is so the project can detect capital letters. If everything were case sensitive, this would break all Scratch projects, which is not good.

<case sensitive [x] = [X] :: operators > // reports false.

<case sensitive [v] = [v] :: operators > // reports true.

This boolean helps prevent that. This could be useful for encoders/decoders without having to do the workaround of costumes, since you have to make a costume for every letter in the alphabet, and then all the other complicated coding.

Last edited by Charles12310 (Sept. 6, 2017 23:53:24)

LionHeart70
Scratcher
1000+ posts

Case Sensitive Block

Support, this could come in handy for those who need a lot of letter blocks.
DaEpikDude
Scratcher
1000+ posts

Case Sensitive Block

Maybe have it be more like the “not” block i.e.
<case sensitive <>::operators>
Support!
Hypnotron
Scratcher
100+ posts

Case Sensitive Block

The workaround is pretty straightforward, so I don't think a case-sensitive block is necessary.
There is also an even easier workaround which only involves two costumes.

Last edited by Hypnotron (Sept. 6, 2017 23:51:55)

walkcycle
Scratcher
500+ posts

Case Sensitive Block

The Blue mod of Scratch (discussion here) has lots of good ideas. This one looks like a duplicate (“Case Sensitive Equals Block”).

Here's more recent discussion (“Scratch 3 should be case sensitive”) and a different approach (“Case sensitive C block”).

Last edited by walkcycle (Sept. 7, 2017 02:39:59)

Paddle2See
Scratch Team
1000+ posts

Case Sensitive Block

walkcycle wrote:

The Blue mod of Scratch (discussion here) has lots of good ideas. This one looks like a duplicate (“Case Sensitive Equals Block”).

Here's more recent discussion (“Scratch 3 should be case sensitive”) and a different approach (“Case sensitive C block”).
Thanks for the links! It does look like this is a duplicate topic so I'll close it to keep duplicates to a minimum.

Probably this topic is the closest one and should be used to add new support.

Last edited by Paddle2See (Sept. 7, 2017 09:56:55)

Botcho_Otkho
Scratcher
1000+ posts

Case Sensitive Block

Support,that would be useful for maybe… i don't know… a script that detects a safe code? Anyway,i really want this block.

Powered by DjangoBB