Returns the number of attributes that matches a predicate expression within the active configuration. The predicate expression is defined using the ActiveAttribute() function.
int AttributeOcc(bool predicateExpression)
predicateExpression |
The expression to evaluate for each attribute to decide if it should be counted or not. |
Example
AttributeOcc(SubStr(ActiveAttribute("Name"); 0; 6) = "Weight" && ToDouble(ActiveAttribute("Value")) > 1000)
Returns the number of attributes whose name starts with "Weight" and whose value is greater than 1000).