Is there a way to verify that a TMap index exists before accessing it?

Let’s say I have a TMap, and I can’t be 100% sure that the int32 I pass to it is actually contained within the map- is there anything I should be doing to make the check safer and ensure things don’t blow up if I try to access an index that has no data in it?

You can use TMap::Contains to check if the map contains an entry with a given key.

1 Like

Perfect!! Thank you :slight_smile: