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)



A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
LionHeart70
Scratcher
1000+ posts

Case Sensitive Block

Support, this could come in handy for those who need a lot of letter blocks.

lh70 / nora/tobi / she-they pronouns / pansexual-demisexual / 14 / sagittarius / furry / artist / intp / stop-motion films / lbp / fall out boy / panic! at the disco / twenty one pilots / stranger things / a series of unfortunate events
“When you have a bad day, a really bad day, try and treat the world better than it treated you.” -Patrick Stump
“Music seems to hold everything together. It seems to make things not so chaotic sometimes. It seems to make things make more sense sometimes.” -Tyler Joseph
“You'll fear your fears forever if you never do things you're afraid of.” -Josh Dun
“I'm still figuring out who I am, but I know I'm not who I was.” -Brendon Urie
DaEpikDude
Scratcher
1000+ posts

Case Sensitive Block

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

And all the world over, each nation's the same,
They've simply no notion of playing the game.
They argue with umpires, they cheer when they've won,
And they practice beforehand, which ruins the fun!
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)


Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)



;
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.

I see now that the circumstances of one's birth are irrelevant. It is what you do with the gift of life that determines who you are. - Mewtwo

Powered by DjangoBB