or download this
if (currMaj < bestMajVer || (currMaj == bestMajVer && currMin <= bestM
+inVer))
// Current image is no better than the best so far
...
|| (currMaj == bestMajVer && currMin <= bestMinVer)
)
// Current image is no better than the best so far