Build.BlitzBuild - version::is-newer

Description

Compares two version numbers, and returns true if v1 is newer than v2. For example, 1.2.3.4 is newer than 1.1.2.3 so would return true.

bool version::is-newer (
     string v1,
     string v2
)

Parameters

Table 20. Parameters

Name Type Description
v1 string Base version number to compare.
v2 string Version number to compare with.

Return Values

True if v1 is newer than v2.