requireMutuallyExclusiveAttributes() (tick_24Validator Engine Only)

int requireMutuallyExclusiveAttributes(int display, int returntype, string att1[, string att2...]);

display - if nonzero, then a default error message is displayed if more than one of the listed attributes are used, if zero (0), then the default error message is not displayed

attx - an attribute

This function returns -2 if none of the listed attributes are used, -1 if more than one of the listed attributes is used, and 1 or greater if exactly one of the listed attributes is used:

If returntype is $RETURN_LISTINDEX, then the function returns 1 or greater if exactly one of the listed attributes is used. For instance, 1 is returned if the first listed attribute is used (att1), 2 if the second (att2), and so on. If more than one attribute is used, the return value is -1.

If returntype is $RETURN_ATTINDEX, then the function returns 1 or greater if exactly one of the listed attributes is used. The return value is the index of the used attribute. If more than one attribute is used, the return value is -1.

If returntype is $RETURN_NOTUSED, then the return value is undefined. Use this if you do not use the return value of this function.

If the return value is -1, and display is nonzero, then a standard error message will be generated stating that the tag requires listed attributes to be mutually exclusive.