RealDocs

UKismetArrayLibrary::Array_IsNotEmpty

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

Description

Returns true if the array has at least one element.

Caveats & Gotchas

  • Exists purely to avoid a NOT node in Blueprint graphs after Array_IsEmpty — functionally the exact inverse of that node.
  • Marked BlueprintThreadSafe, so it's safe to call from async Blueprint contexts.

Signature

static bool Array_IsNotEmpty(const TArray<int32>& TargetArray);

Parameters

Name Type Description Default
TargetArray const TArray<int32>& The array to check.

Return Type

bool

Example

Guard a loop on array contents C++
TArray<int32> Values = { 1, 2, 3 };
if (UKismetArrayLibrary::Array_IsNotEmpty(Values))
{
    // Safe to access Values[0]
}

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.