rpti::item has

Check if an item attribute, property or role exists.

rpti::item hasattribute

Check if an item attribute exists.

Syntax
rpti::item hasattribute
Parameters
-id
Value: Item ID.
-name
Value: Attribute name.
Returns
1 if role exists, 0 if role does not exist.

rpti::item hasProperty

Check if the item has property with specified key.

Syntax
rpti::item hasProperty
Parameters
-id
Value: Item ID.
-key
Value: Property key.
Returns
1 if valid, 0 if invalid.

rpti::item hasrole

Check if an item role exists.

Syntax
rpti::item hasrole
Parameters
-id
Value: Item ID.
-name
Value: Role name.
Returns
1 if role exists, 0 if role does not exist.