Main Content

isResolvedDestination

Class: slreq.Link
Package: slreq

Check if the link destination is resolved

Syntax

tf = isResolvedDestination(myLink)

Description

tf = isResolvedDestination(myLink) checks if the destination of the link myLink is resolved.

A resolved link has an available source and destination. If a link source or destination is not available, the link is unresolved. For example:

  • A link becomes unresolved if you delete a linked block from a model.

  • A link is unresolved if a source or destination file, such as a Simulink® Test™ test file, is not loaded in memory.

Input Arguments

expand all

Handle to a link, specified as an slreq.Link object.

Output Arguments

expand all

The destination resolution status of the slreq.Link object, returned as a Boolean.

Examples

Check if Link Destination is Resolved

isResolvedDestination(myLink)

ans =

  logical

   1
Introduced in R2019a