Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ps-team/b6069d106a62b6de03011f7ac8e429c5 to your computer and use it in GitHub Desktop.
Save ps-team/b6069d106a62b6de03011f7ac8e429c5 to your computer and use it in GitHub Desktop.
Get a property or metadata from a page, in a safe way (so if the metadata doesn't exist it doesn't fall over). In this example we're replacing the title of a page based on metadata
if variable("MD_AlternativeTitle") isnot nothing then
Me.TitleBar = variable("MD_AlternativeTitle")
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment