Code: Select all
MsgBox(A_AhkVersion < '2')
Code: Select all
MsgBox(A_AhkVersion < '2')
Apparently not always.
Because I read an example in the documentation, and decided to use it, changing it a little.
Code: Select all
MsgBox(VerCompare(A_AhkVersion, '2.0')) ; <= -1
Code: Select all
MsgBox(SubStr(A_AhkVersion, 1, 3) < '2.0') ; <= 0
Code: Select all
MsgBox(InStr(A_AhkVersion, '2',, 1) = 1) ; <= 1
Greater (>), less (<), greater-or-equal (>=), and less-or-equal (<=). The inputs are compared numerically. A TypeError is thrown if either of the inputs is not a number or a numeric string.
Source: Variables and Expressions - Definition & Usage | AutoHotkey v2
That is correct. -beta.15 is a pre-release tag. Pre-releases literally come before the release. v2.0 would be the final release, which hasn't come out yet. This is why #Requires AutoHotkey v2.0 will give you an error.