I have written a compare function "$equalOrGreaterVersion()" which can work with both notations (If somebody needs it).
BR Helmut
!unquoted function $normalizedVersion($ver)
' add missing 0 if patch has only one digit
' 1.2021.7beta1 -> 1.2021.07beta1
' 1.2021.07 -> 1.2021.07
' 1.2021.7 -> 1.2021.07
!local $expDigit2 =%substr($ver,8,1)
!if ($expDigit2<"0" || $expDigit2>"9")
!$ver = %substr($ver,0,7) + "0" + %substr($ver,7,10)
!endif
!return $ver
!endfunction
!unquoted function $equalOrGreaterVersion($currentVer, $requiredVer)
' add z that beta1,... are handled too (1.2021.7z -> 1.2021.07beta1z)
!$currentVer = $normalizedVersion($currentVer) + "z"
!$requiredVer = $normalizedVersion($requiredVer) + "z"
!if ($currentVer >= $requiredVer)
!return %true()
!endif
!return %false()
!endfunction