check if attribute name is a child

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

data.is_child_map() -> bool

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

result = data.is_child_map('attr2')

In this example, we simply use the is_child_map method on the MaciDataObj to get a boolean check if the attribute name passed into the parameter is a child mapped to a parent, 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