version::is-older

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

Description

Compares two version numbers, and returns true if v1 is older than v2.

For example, "0.1.0.0" is older than "1.2.3.4", so version::is-older("0.1.0.1", "1.2.3.4") will return true.

Parameters

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