function isCurrentVersionBefore(version) {
  var appVersion = MSApplicationMetadata.metadata().appVersion
  return compareVersion(appVersion, version) < 0
}
Return if the current application is before a specified version
e.g. '47.2'