I figured out how to do this without watching the solution. (still haven’t watched it)
bool FBullCowGame::IsLowerCase(FString Word) const
{
TMap<char, bool> LetterLowerCase;
for (auto Letter : Word)
{
if(Letter != tolower(Letter))
{
return false;
}
else { }
}
return true;
}
I learned that we don’t have to have anything inside of the “else brackets” I was having trouble because I kept telling it to return true, but when I did, it would only check if the first letter is lowercase. So once I made the “else” blank, the function works properly.