![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | OPMRCL |
does sombody know a way to chechk whether a string is upper or lower case in gdscript?
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | OPMRCL |
does sombody know a way to chechk whether a string is upper or lower case in gdscript?
![]() |
Reply From: | juppi |
Try that:
var text = "hello"
if (text == text.to_lower()):
print("text is lower case")
elif (text == text.to_upper()):
print("text is upper case")
else:
print("text is neither")