KvGotoNextKey Function

Sets the current position in the KeyValues tree to the next sub key. This native does NOT add to the internal traversal stack, and thus KvGoBack() is not needed for each successive call to this function.

bool KvGotoNextKey(Handle kv, bool keyOnly)

Parameters

Handle kv

KeyValues Handle.

bool keyOnly

If false, non-keys will be traversed (values).

Return Value

True on success, false if there was no next sub key.

Errors

Invalid Handle.