Skip to main content

CheckAttribute

The CheckAttribute function is supported in both Studio and in Search. It returns True if the attribute exists on the element, otherwise it returns False.

Prototype

    CheckAttribute(Attribute)

Arguments

    Attribute       String        By value

A valid string, an expression or a variable (Studio only) containing the attribute name.

Returns

    Boolean

The functions returns True if the attribute exists, otherwise it returns false.

Exception

    Undefined

Undefined is returned if no element is current.

Example 

    CheckAttribute('MeasuredMass')

This will return True if the MeasuredMass attribute exists in the element.