/VersionCompare

Pascal function to compare 2 string versions ( like 1.0.0.1 and 1.2.3.4, or 1.0.0 and 1.2.3...)

Primary LanguagePascal

# VersionCompare How to use: Add do PATH, or install with Boss

⚙️ Installation

Installation is done using the boss install command:

$ boss install arvanus/VersionCompare

Add to your uses uVersionCompare

Examples:

VersionCompare('2','1'); //1
VersionCompare('1.1.56789','1.2.0');//-1
VersionCompare('2.0','2.0'); //0
VersionCompare('2.0','2'); //0
VersionCompare('2.0','2', false); //0