Skip to main content

AllConfigValues

This function was added in DSL 1

Description

Iterates over all values in a configuration object for a given key. This function is useful for retrieving all values associated with a specific key in a configuration, allowing for easy access to multiple values without needing to know the exact structure of the configuration.

function AllConfigValues(config, key) --[[ ... ]] end

Parameters

  • config: userdata - The configuration object to iterate over.
  • key: string - The key to look up in the configuration.

Return Values

  • iterator: function - An iterator function that returns the next value in the configuration for the given key.

Example

...

See Also

...