Model.hm_controlcardattributedefined#
- Model.hm_controlcardattributedefined(cardName, attribute)#
Returns 1 if an attribute exists, 0 otherwise.
- Parameters:
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:attribute (int)
1 - if an attribute exists
0 - otherwise
Example#
Check if attribute exists in control card with name “ CTRL_VERSION “#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_controlcardattributedefined( cardName="CTRL_VERSION", attribute="Value" ) print("Attribute: ", result.attribute)