Query Methods

Two query methods are available for seeing if the associated element has certain tags or properties; these methods can be used as the conditional expression for an if else statement.

Method

Description

See also

boolean HasTag(
 string tagname,
 ( string tagvalue ) )

Returns true if the associated element has a tag value with the name tagname.

If the second parameter tagvalue is provided, the tag tagname must be present, and the value of the tag has to be equal to tagvalue for the method to return true.

 

 

boolean HasProperty(
 string propertyname,
 ( string propertyvalue ) )

Returns true if the associated element has a property with the name propertyname.

If the second parameter propertyvalue is provided, the property must be present, and the value of the property has to be equal to propertyvalue for the method to return true.

 

Display Element/Connector Properties