Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Detecting if a letter is uppercase or lowercase
- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
How can I sense if an individual letter is lowercase or uppercase in Scratch? I know you can do this offline with the <list contains string> block, but it doesn't work in Scratch 2.0.
Last edited by powerpoint56 (May 19, 2013 11:51:47)
- XdwbX
-
22 posts
Detecting if a letter is uppercase or lowercase
You could make a list of capital letters, and compare to that.

Of course, changing the 1 on the second line with a “length of” block could get you any letter of the string you wanted to check.

Of course, changing the 1 on the second line with a “length of” block could get you any letter of the string you wanted to check.
- xlk
-
100+ posts
Detecting if a letter is uppercase or lowercase
Basically, you have a list with all the upper case letters, and check if it contains the first letter
- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
Yeah, I tried that, but it doesn't work in 2.0… Basically, you have a list with all the upper case letters, and check if it contains the first letter

- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
Doesn't work with 2.0… You could make a list of capital letters, and compare to that.
Of course, changing the 1 on the second line with a “length of” block could get you any letter of the string you wanted to check.
Last edited by powerpoint56 (May 19, 2013 15:17:51)
- scratchU8
-
60 posts
Detecting if a letter is uppercase or lowercase
Well, if it doesn't work in 2.0, you can still always make and upload it with 1.4.
That is, of course, if you didn't already get so far into it that it'd take forever to start over, because I don't think there's a way to convert 2.0 into 1.4.
Ehm.
That is, of course, if you didn't already get so far into it that it'd take forever to start over, because I don't think there's a way to convert 2.0 into 1.4.
Ehm.
- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
Well, I have gotten quite a long ways with it (what an understatement, powerpoint56!!!!!!!!! Well, if it doesn't work in 2.0, you can still always make and upload it with 1.4.
That is, of course, if you didn't already get so far into it that it'd take forever to start over, because I don't think there's a way to convert 2.0 into 1.4.
Ehm.


- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
Update: Nope, I tried on my test account, but once it's converted to 2.0 Flash format it isn't case-sensitive anymore. 

- XdwbX
-
22 posts
Detecting if a letter is uppercase or lowercase
It worked as I posted. At least, when I tested it, it did. Can you post a pic of your code?
- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
Try having it sense a lowercase letter as the first letter. What does it report? It worked as I posted. At least, when I tested it, it did. Can you post a pic of your code?
- XdwbX
-
22 posts
Detecting if a letter is uppercase or lowercase
You're absolutely right. The test I did earlier was flawed. Scratch sees “A” as being equal to “a”.
I'll still try to find a way to make this work. Sorry for my mistake.
I'll still try to find a way to make this work. Sorry for my mistake.
- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
That's fine! Thanks for trying to help! You're absolutely right. The test I did earlier was flawed. Scratch sees “A” as being equal to “a”.
I'll still try to find a way to make this work. Sorry for my mistake.

- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
bump
Is there even a way to detect if a letter is uppercase or lowercase?
Is there even a way to detect if a letter is uppercase or lowercase?
- BoltBait
-
1000+ posts
Detecting if a letter is uppercase or lowercase
How can I sense if an individual letter is lowercase or uppercase in Scratch? I know you can do this offline with the <list contains string> block, but it doesn't work in Scratch 2.0.
Here's one that works:
http://scratch.mit.edu/projects/10213040/
This is only a demo that works for A or a. But, you should be able to easily expand it to the entire alphabet.
Hope this helps.
- powerpoint56
-
1000+ posts
Detecting if a letter is uppercase or lowercase
Thanks!How can I sense if an individual letter is lowercase or uppercase in Scratch? I know you can do this offline with the <list contains string> block, but it doesn't work in Scratch 2.0.
Here's one that works:
http://scratch.mit.edu/projects/10213040/
This is only a demo that works for A or a. But, you should be able to easily expand it to the entire alphabet.
Hope this helps.
- jpayer123
-
12 posts
Detecting if a letter is uppercase or lowercase
You could make a list of capital letters, and compare to that.
Of course, changing the 1 on the second line with a “length of” block could get you any letter of the string you wanted to check.
I would be a lot easier if they just had a block like
then you could set case-sensitive on and off
Last edited by jpayer123 (July 28, 2015 20:38:19)
- hedgehog125
-
100+ posts
Detecting if a letter is uppercase or lowercase
Yes there is somone has made a converter: Well, if it doesn't work in 2.0, you can still always make and upload it with 1.4.http://kurt.herokuapp.com/20to14
That is, of course, if you didn't already get so far into it that it'd take forever to start over, because I don't think there's a way to convert 2.0 into 1.4.
Ehm.

- DrKat123
-
1000+ posts
Detecting if a letter is uppercase or lowercase
Please don't necropost.Yes there is somone has made a converter: Well, if it doesn't work in 2.0, you can still always make and upload it with 1.4.http://kurt.herokuapp.com/20to14
That is, of course, if you didn't already get so far into it that it'd take forever to start over, because I don't think there's a way to convert 2.0 into 1.4.
Ehm.
- cs69170
-
61 posts
Detecting if a letter is uppercase or lowercase
How can I sense if an individual letter is lowercase or uppercase in Scratch? I know you can do this offline with the <list contains string> block, but it doesn't work in Scratch 2.0.Check out this project: https://scratch.mit.edu/projects/169828742/
PS I made it



- -Mysticoder-
-
100+ posts
Detecting if a letter is uppercase or lowercase
Hi, as this issue has been resolved, I will report it to be closed.
- Discussion Forums
- » Help with Scripts
-
» Detecting if a letter is uppercase or lowercase