How to Check if a String is All Caps?

Alright, so the title is pretty self explanatory. Is there a way to see if a string is all caps. I am so and so with my string manipulation skills, so this seems like something I do not know. I know it has been done, so now I am just a little confused.
If I figure out anything, I will update this post. Thank you for any help!

1 Like
local String = "TESTING WITH STRINGS"
local IsStringCaps = false

if string.upper(String) == String then
  IsStringCaps = true
end
11 Likes

You know what, I am just plain dumb. That is the simplest thing I have ever seen. Tysm!

5 Likes