Inquiry Intrinsic Function (Generic):
Returns the association status of its pointer argument or indicates whether the pointer is associated with the target.
result = ASSOCIATED (pointer [, target])
Must be a pointer (of any data type).
target (Optional; input)
Must be a pointer or target.
The pointer (in pointer or target) must not have an association status that is undefined. ???
The result is a scalar of type default logical.
- If only pointer appears, the result is true if it is currently associated with a target; otherwise, the result is false.
- If target also appears and is a target, if pointer is currently associated with target; otherwise, the result is false.
- If target is a pointer, the result is true if both pointer and target are currently associated with the same target; otherwise, the result is false.
- If either pointer or target is disassociated, the result is false.