Discuss Scratch

markpd
Scratcher
21 posts

[LOGGED] a glitch with capital letters and lowercase in blocks

Dear Scratch team,

Click this link: https://scratch.mit.edu/projects/83180390/#editor

Click the head sprite, and look at the blocks. Click more blocks and find the block called 8.Say for seconds. I did all of the programming needed. But when you use the block, The words show up as capital letters! So i would like scratch to fix this glitch before anyone else experiences it!
when green flag clicked
say [thank you!]
if (letter (word scanner) of (words))
switch costume to [space v]

end

Last edited by RjLance (Nov. 10, 2015 15:27:14)

RjLance
Scratcher
1000+ posts

[LOGGED] a glitch with capital letters and lowercase in blocks

Hi markpd,

Thank you for bringing this glitch to our attention. I think the problem is that the costume name is case insensitive which is a glitch. This is why you are having issues displaying lower case values. A workaround for this could be to change costume “a” to costume “lower a” and do this for all the other lower case letters.
RjLance
Scratcher
1000+ posts

[LOGGED] a glitch with capital letters and lowercase in blocks

Sorry it is the comparison operator that has the issue

<[h] = [H]>

Will result in true
markpd
Scratcher
21 posts

[LOGGED] a glitch with capital letters and lowercase in blocks

My browser / operating system: Windows NT 10.0, Chrome 42.0.2311.135, Flash 19.0 (release 0)
For now, I have windows ten so right now I am using edge.
But I hope the problem gets fixed soon!

Last edited by markpd (Nov. 10, 2015 17:33:05)

markpd
Scratcher
21 posts

[LOGGED] a glitch with capital letters and lowercase in blocks

And yeah what you told me to go around it will work but I want it to work like this:

When you say HI THERE! I want it to show up as HI THERE! and if you say this: GoOd MOOOrninG I want it to show up as GoOd MOOOrninG but It only shows as GOOD MORNING! So I hope the scratch tem may fix this!
when green flag clicked
say [Thank You!]
TheLogFather
Scratcher
1000+ posts

[LOGGED] a glitch with capital letters and lowercase in blocks

It's not a glitch in Scratch, it's the way Scratch is actually *designed*.

The equals operator considers letters of different case to be the same (i.e. capital letters vs small letters). It means that, for example, “Hello”, “hello” and “HELLO” are all the same as far as Scratch is concerned.

There are ways you can detect the case of a letter, though. Here is a project that shows a couple of them: https://scratch.mit.edu/projects/64857642/

If you search for “detect case” in the Scratch search bar at the top, you will find lots of information about it, and then you can use such a method in your project to make it do what you want…

RjLance
Scratcher
1000+ posts

[LOGGED] a glitch with capital letters and lowercase in blocks

Thanks TheLogFather

You are right it is expected but a bug has been logged for this issue. I am hoping perhaps this can be reviewed again.

And thank you for the project. It has some great examples on how to detect case.

https://github.com/LLK/scratch-flash/issues/952


Last edited by RjLance (Nov. 11, 2015 14:23:19)

Powered by DjangoBB