How to check if a link exists? #1521
-
Beta Was this translation helpful? Give feedback.
Answered by
blacksmithgu
Nov 2, 2022
Replies: 2 comments 4 replies
-
Ideally, I'd like an enhancement to the link object to account for this but meanwhile, you could probably use the Obsidian API to find link destinations. |
Beta Was this translation helpful? Give feedback.
3 replies
-
You can just try looking up the page: var link = dv.func.link("random name")
if (dv.page(link) == null) {
// doesn't exist
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
awlobo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just try looking up the page: