date.versionLessThan

Syntax date.versionLessThan (v1, v2)

Params v1 and v2 are version strings in the common major.minor.subminor format

Action Determines whether v1 is less than v2

Returns true if v1 is less than v2; false otherwise.

Examples date.versionLessThan ("4.2.3", "6.1b2")
true

date.versionLessThan ("6.1", "4.2.3")
false

date.versionLessThan ("6.1b1", "6.1a1")
false

date.versionLessThan ("2.0b9", "2.0")
true

date.versionLessThan ("2.0", "2.0b9")
false

date.versionLessThan ("5.1.5b9", "5.1.5b9")
false

date.versionLessThan ("5.1.5b9", "5.0.2b18")
false

date.versionLessThan ("5.1.5", "5.0.2b18")
false

date.versionLessThan ("5.1.5", "5.1.5b18")
false

date.versionLessThan ("5.1.5b18", "5.1.5a18")
false

date.versionLessThan ("6.1", Frontier.version ())
false

Notes If v1 is equal to v2, this verb returns false.

This version numbering convention is patterened after the version numbering on the Mac platform, established in the early-mid 80s.

See Also Frontier.version

Discuss