C++ Dot operator with int to string as well

Similar.

void UBullCowCartridge::ProcessInput(FString Input)
{
	if (HiddenWord == Input) 
	{
		PrintLine(TEXT("You got it."));
	}
	else
	{
		if (Input.Len() != HiddenWord.Len()) 
		{
			PrintLine(TEXT("\nEnter a " ) + FString::FromInt(GameLevel + 3) + TEXT(" letter word..."));
		}
		PrintLine(TEXT("Nope."));
	}
}

Thanks for sharing!
I was having trouble getting FString::FromInt to work but seeing your example helped! :raised_hands:t2:

1 Like

Privacy & Terms