/Engine/Source/Runtime/Analytics/Analytics/Public/Interfaces/IAnalyticsPropertyStore.h
Conditionnnaly adds or updates the specified key/value pair. The operation is atomic from the caller perspective. The function reads the actual value (if it exists), invoke the ConditionFn callback and write the value back if the condition function returns true. If the key doesn't exist, the actual value passed back to the condition function is null. If the condition function returns true, the proposed value is set, otherwise, the operation is declined and the store remains unchanged.
One of the following code
[EStatusCode](API\Runtime\Analytics\Interfaces\IAnalyticsPropertyStore\EStatusCode) Set ( const [FString](API\Runtime\Core\Containers\FString) & Key, int32 Value, const [TFunction](API\Runtime\Core\GenericPlatform\TFunction)< bool(const int32 *, const int32 &)> & ConditionFn )