Compare two version strings
First version string to compare
second version string to compare
Return 0 if v1 == v2, or 1 if v1 is greater, or -1 if v2 is greater
if (me.utils.checkVersion("7.0.0") > 0) { console.error( "melonJS is too old. Expected: 7.0.0, Got: 6.3.0" );} Copy
if (me.utils.checkVersion("7.0.0") > 0) { console.error( "melonJS is too old. Expected: 7.0.0, Got: 6.3.0" );}
Compare two version strings