type/attributed - check if an expression has attributes
|
Calling Sequence
|
|
type(expr, 'attributed')
type(expr, 'attributed(attr1, attr2, ... )')
|
|
Parameters
|
|
expr
|
-
|
any expression
|
attr1, attr2, ...
|
-
|
(optional) expressions representing attributes
|
|
|
|
|
Description
|
|
•
|
An expression is of type attributed if it has attributes; that is, if the expression sequence of its attributes is not NULL.
|
•
|
The command type(expr, 'attributed') returns true if expression expr is of type attributed. Otherwise, false is returned.
|
•
|
By using the second form of the calling sequence, you can check for one or more specific attributes. In this case, the test returns true if the expression expr has all of the specified attributes attr1, attr2, .... Otherwise, false is returned.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
|
|
Download Help Document
Was this information helpful?