bool isSwitch=false; //定义一个bool类 FString str= isSwitch?FString::FString("True"): FString::FString("False");