Discuss Scratch
- Discussion Forums
- » Suggestions
- » A uppercase/ lowercase block
- DaSpudLord
- Scratcher
1000+ posts
A uppercase/ lowercase block
Semi-support, while I believe it exists in other languages, I feel it might be underused- and by that I mean it won't be very useful, especially considering Scratch is not case-sensitive. If you need it, though, there are workarounds, but they can be a bit tedious.
| Primary Target | Fireworks Show! Wheel of Fortune || Block Buster ||||| Shut the Box ||||||||| Surf's Up! |||||
U^ェ^U::motion//This is Blocky. He lives in my signature. He is a trained attack block. He protects my siggy from kumquats.
- LastAttack1257
- Scratcher
100+ posts
A uppercase/ lowercase block
Semi - support - for this reasaon ^ Semi-support, while I believe it exists in other languages, I feel it might be underused- and by that I mean it won't be very useful, especially considering Scratch is not case-sensitive. If you need it, though, there are workarounds, but they can be a bit tedious.
Check out my profile! or my Youtube channel!
Generation 5: the first time you see this copy and paste it on top of
your sig in the scratch forums and increase generation by 1. Social experiment.
Basic RPG | XP Bar Simulator | Random World Generator
Most Popular Project | Most Loved/Favorited
- Prinseskat
- Scratcher
1000+ posts
A uppercase/ lowercase block
define convert (string) to (upper/lower) case
set [new string v] to [] //will return string converted to upper/lower case
set [i v] to [1]
repeat (length of (string)) //loop through string
set [j v] to [1]
repeat until << (letter (j) of [abcdefghijklmnopqrstuvwxuz]) = (letter (i) of (string)) > or < (j) > [26] >>
change [j v] by (1) //loop through alphabet until letter is found
end
if < (j) > [26] > //if it is not in alphabet
set [new string v] to (join (new string) (letter (i) of (string))
else
if <(upper/lower) = [upper]>
set [new string v] to (join (new string) (letter (j) of [ABCDEFGHIJKLMNOPQRSTUVWXYZ]) //add uppercase version to new string
end
if <(upper/lower) = [lower]>
set [new string v] to (join (new string) (letter (j) of [abcdefghijklmnopqrstuvwxuz]) //add lowercase letter to string
end
end
change [i v] by (1) //on to next letter in string!
end
haha funny kumquat meme
- minor-edit
- Scratcher
500+ posts
A uppercase/ lowercase block
John Conway
☁️
• ω •
HSL and RGB levels
Whoops! Our server is Scratch'ing its head
We couldn't find the page you're looking for. Check to make sure you've typed the url correctly.
You can try searching for what you're looking for here:
We couldn't find the page you're looking for. Check to make sure you've typed the url correctly.
You can try searching for what you're looking for here:
Search
(╯°□°)╯︵ ┻━┻ 404 ┻━┻ ︵╰(°□°╰)
these blocks have been hidden for your safety
these blocks have been hidden for your safety
scroll around the scripting area while holding a block of code.
hi
necroposting is allowed on the Suggestions forum for comments relevant to the discussion
- Seth_Zaw
- Scratcher
100+ posts
A uppercase/ lowercase block
Well, what if Turkish scratchers wanted to use that block? (In Turkish, I's lowercase is ı, and i's uppercase is İ)
¡Aprendamos español con los Alfabetons!
In my new series, you will cover genders of nouns, important and useful phrases, conjugating verbs and adjectives, regular and irregular words, and more, in Spanish!
Click here to get started!
Visit the Official Alfabetons Website: https://alfabetons.com
- ILikeScratch0-0-0-1
- Scratcher
27 posts
A uppercase/ lowercase block
define convert (string) to (upper/lower) case
set [new string v] to [] //will return string converted to upper/lower case
set [i v] to [1]
repeat (length of (string)) //loop through string
set [j v] to [1]
repeat until << (letter (j) of [abcdefghijklmnopqrstuvwxuz]) = (letter (i) of (string)) > or < (j) > [26] >>
change [j v] by (1) //loop through alphabet until letter is found
end
if < (j) > [26] > then //if it is not in alphabet
set [new string v] to (join (new string) (letter (i) of (string))
else
if <(upper/lower) = [upper]> then
set [new string v] to (join (new string) (letter (j) of [ABCDEFGHIJKLMNOPQRSTUVWXYZ]))//add uppercase version to new string
end
if <(upper/lower) = [lower]> then
set [new string v] to (join (new string) (letter (j) of [abcdefghijklmnopqrstuvwxuz])) //add lowercase letter to string
end
end
change [i v] by (1) //on to next letter in string!
end
Last edited by ILikeScratch0-0-0-1 (Oct. 6, 2020 19:20:50)
(random condition ::boolean operators) :: control hat
if <(pick random (0) to (1)) = (0)> then
report[false] :: control cap
else
report[true] :: control cap
end
when gf clicked
say <random condition :: operators>
- Conniepoo
- Scratcher
3 posts
A uppercase/ lowercase block
There is a much simpler way to capitalize and lowercase strings in scratch.
This just loops 26 times for each letter in the string to determine what letter it is, and then it translates it to a corresponding letter in either lowercase or uppercase. In the image it is a lowercase version. Change the second visible alphabet to all caps if you want upper case, or to anything you want to correspond to the different letters of the alphabet.
This just loops 26 times for each letter in the string to determine what letter it is, and then it translates it to a corresponding letter in either lowercase or uppercase. In the image it is a lowercase version. Change the second visible alphabet to all caps if you want upper case, or to anything you want to correspond to the different letters of the alphabet.
set (Password) to [PaSSWoRd]
set (Letter) to [1]
set (Password2) to []
repeat (length of (Password))
repeat (26)
if <(letter (Letter) of (Password)) = (letter (Iterations) of [abcdefghijklmnopqrstuvwxyz])> then
set (Password2) to (join (Password2) (letter (Iterations) of [abcdefghijklmnopqrstuvwxyz]))
end
change (Iterations) by (1)
end
change (Letter) by (1)
set (Iterations) to [1]
end
say (Password2) for (2) secs
say [password]
Last edited by Conniepoo (Oct. 21, 2020 03:48:14)
- dhfbei8987
- Scratcher
1000+ posts
A uppercase/ lowercase block
Bump. This would be useful if there's codes, all caps, lowercase stuff, etc.
An advocate for, well, a lot of stuff.
TODAY's hot debate topic: Should we return in-person or no?
The semicolon is back, but not because it's April fools.
proud owner of shadesofllfe, a namesnipe.
Oi Boiz Im 87th 70th in suggestions!
In a world where a majority are against me…
I STAND TO FIGHT BACK AN PROVE THEM WRONG!!!
An animation, to release in a few months…
500 posts yay! 1000 posts WOOHOO!
LEARN HOW TO MAKE A THUMBNAIL HERE
My WIWO might be a trend?!!!
Working on my website.
How Did I acquire @cheddagirl's old Signature???!!!!!
- Discussion Forums
- » Suggestions
- » A uppercase/ lowercase block