Model.hm_istextcard#

Model.hm_istextcard(entity)#

Returns 1, for control cards if it is a string array card, else it returns 0.

A card is a string array card if it has exactly three attributes:

Attributes 1 (template tag) and 2 (array size) are integers.

Attribute 3 is an array of strings.

Parameters:

entity (Entity) – The object describing the entity whose control card you wish to evaluate.

Returns:

Example#

Check if card with ID 7 is a string array card#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.model.hm_istextcard(entity=ent.Card(model,7))

print("isTextCard", result.isTextCard)