Extended version of [find_hierarchy_object], returning the first object that matches any of a range of names.

find_hierarchy_object_any(x, any_names, include_children = FALSE)

Arguments

x

The object hierarchy to search. This is typically a `list` loaded from a scenario `.json` file.

any_names

A vector of object names to search for.

include_children

Should children be included in the result?

Value

The matching object, or NULL if none found.