Discuss Scratch

souleymane2
Scratcher
100+ posts

How to detect lower and upper case letters

Hewo!
So I'm currently working on a cloud list. And to translate the numbers to letters i'm using a list. Now scratch has a sometimes usefull feature where whether or not a letter is a capital letter it will. So if I have a list with A and a and I use a block the returns the item # of a it will go to the first a. Idk if I explained it well well it least I tried. So if anyone had any ideas I'm open.
Wei-ern_520
Scratcher
500+ posts

How to detect lower and upper case letters

You can refer to this
orangetheory
Scratcher
500+ posts

How to detect lower and upper case letters

Create a list with upper case letters, then a list with lower case letters. Then make it so that when a certain action is done, it reads the value and transmits the letter # to the below script. Then do so:
...::hat
forever
if <[lowercase letters v] contains (item (letter) of [list v] :: list) ?> then
...::grey
else
Your uppercase scripts here::grey
end
end

If you have one list, then try putting the same letters in the same index, but one is lowercase and one is uppecase.
For example:
1. Aa
2. Bb
3. Cc
4. etc..
Then you can read the list based on the letter # in the index the project is encoding, using the
(letter (letter 1 if lowercase and letter 2 if uppercase::grey) of (item (item index or something::grey) of [encoded letters v] :: list))

Last edited by orangetheory (Sept. 3, 2021 14:52:54)

souleymane2
Scratcher
100+ posts

How to detect lower and upper case letters

Thanks!

Powered by DjangoBB