check if attribute name is a parent

Checks if an attribute name in the MaciDataObj is a parent mapped with children, and returns a bool.

data.is_parent_map() -> bool

Basic Example checking if an attribute name is a parent in the MaciDataObj

result = data.is_parent_map('attr1')

In this example, we simply use the is_parent_map method on the MaciDataObj to get a boolean check if the attribute name passed into the parameter is a parent mapped with children, and assign the returned bool to a variable.

For more information on the mapping concept, see Map Assignment Glyph in the language section and map_attr.

partner methods

Methods that provide related utility to this method

map_attr -> Map an attribute name unmap_attr -> Unmap an attribute name

parameters & arguments

Describes all parameter functionality and accepted data types

attr_name: str

First and only required positional argument. Accepts strings

Use this parameter to pick the attribute name to check.

Last updated