An attribute_check script belongs to an object or service and checks conditions relying on several mutually dependant attribute values.
![]() | Note |
|---|---|
To check the value of a single attribute instead of several, mutually dependant attributes, the attribute's check script should be used instead of the attribute_check script. See the section called “Attribute check script” for checking a single attribute. |
Table 7.8. attribute_check script selector
| Production | Syntax | Links |
|---|---|---|
attribute_list_check_script_selector | "attribute_check" | the section called “attribute_check script” |
All attributes are implicitly provided as input arguments for this script. The id suffix and type of each input argument is the same as those of its respective attribute.
![]() | Note |
|---|---|
At the time of writing, attributes of kindvariable with property setable set to all are not provided as input arguments. This limitation will probably disappear in a future version. |
This script always has one output argument whose id is o_error and whose type is ty_error_check_attribute_list. o_error is void if all conditions are fulfilled. Otherwise it returns an error describing the first check that failed.
See: Example 6.1, “attribute_check example”