UKismetMathLibrary::InRange_Int64Int64
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if Value falls within [Min, Max]. Both bounds are inclusive by default; pass false to make either bound exclusive.
Caveats & Gotchas
- • The function does not validate that Min <= Max. Passing an inverted range (Min > Max) always returns false, which can silently swallow valid values — assert or clamp the bounds before calling.
- • The Blueprint node metadata pins Min and Max default to literals 0 and 10. When wiring from a variable, always explicitly override these literal defaults on the node or they will silently clamp your range to [0, 10].
Signature
static ENGINE_API bool InRange_Int64Int64(int64 Value, int64 Min, int64 Max, bool InclusiveMin = true, bool InclusiveMax = true); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Value | int64 | The value to test. | — |
| Min | int64 | Lower bound of the range. | — |
| Max | int64 | Upper bound of the range. | — |
| InclusiveMin | bool | If true, Value == Min counts as in-range. | true |
| InclusiveMax | bool | If true, Value == Max counts as in-range. | true |
Return Type
bool Example
Validate a row ID is within a valid shard range C++
int64 RowID = GetRowID();
int64 ShardMin = 1000000000LL;
int64 ShardMax = 1999999999LL;
if (UKismetMathLibrary::InRange_Int64Int64(RowID, ShardMin, ShardMax))
{
DispatchToShard(RowID);
} See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?