Build.BlitzBuild - version::is-older

Description

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

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

Parameters

Table 21. Parameters

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

Return Values

True if v1 is older than v2.