Thats because your comparing strings, and a string that starts with "8" is greater than a string that starts with "1" (Kixtart will treat your 10 as a string, because your first argument (the version) is a string) ... two options...

The kludgey way - flip the expression around, then kixtart treats the 10 as a number and will try to convert the version to a number, and probably fails somewhere after the first period but it gets the job done ...

Code:

If 10 > $Version
?"do all this funky stuff"
Endif



The better way, parse the major version from the string and convert it to numeric (val), then do a pure numeric compare ...

Code:

$MajorVersion = Val(Substr($Version,1,Instr($Version,".")-1))

If $MajorVersion < 10
? "do all this funky stuff"
EndIf