Hello,
Please note, that in this situation you can use the check(expr) macro. For comparison of FStrings, you can use Equals() and Contains() functions. For example, in the following method TestValue parameter is checked and in case it doesn’t contain “test” word, breakpoint is triggered:
void AMyCharacter::TestString(const FString& testValue) {
check(testValue.Contains(TEXT("test")));
}
If you like to learn more about FString class, please go here:
Also, if you like to learn more about String handling in Unreal Engine 4 , please go here:
Hope this helped! Have a great day!