RealDocs

UKismetStringLibrary::Conv_BoolToString

function Engine Blueprint Since unknown
#include "Kismet/KismetStringLibrary.h"
Access: public Specifiers: staticBlueprintPureBlueprintAutocast

Description

Converts a boolean value to the string 'true' or 'false'. Backs the 'To String (Boolean)' Blueprint conversion node.

Caveats & Gotchas

  • Always produces lowercase 'true'/'false', not 'True'/'False' or '1'/'0' — build a custom string if you need different casing for display text.

Signature

static FString Conv_BoolToString(bool InBool)

Parameters

Name Type Description Default
InBool bool The boolean value to convert.

Return Type

FString

Example

Convert a bool to string C++
bool bIsAlive = true;
FString StatusText = UKismetStringLibrary::Conv_BoolToString(bIsAlive);
// StatusText == "true"

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.