Using $SNAPCRAFT_PROJECT_VERSION outside the YAML

I’m still building up a snap, but I was wondering…can I leverage things like $SNAPCRAFT_PROJECT_VERSION in shell scripts that will be run with the prepare statement?

The answer is that yes it works in external scripts during the build process.