version::is-newer

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

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 version::is-newer("1.2.3.4", "1.1.2.3") will return true.

Parameters

Table 17. 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.