StringMap.SetValue Method

Sets a value in a hash map, either inserting a new entry or replacing an old one.

bool SetValue(const char[] key, any value, bool replace)

Parameters

const char[] key

Key string.

any value

Value to store at this key.

bool replace

If false, operation will fail if the key is already set.

Return Value

True on success, false on failure.