; Вариант 1
Global $aOS[][] = [["WIN_10","10"],["WIN_81","8.1"],["WIN_8","8"],["WIN_7","7"],["WIN_VISTA","Vista"],["WIN_XP","XP"]]
For $i = 0 To UBound($aOS) - 1
If $aOS[$i][0] = @OSVersion Then MsgBox(0, "", "MS Windows " & $aOS[$i][1])
Next
; Вариант 2
$oDict = ObjCreate("Scripting.Dictionary")
$oDict.Item("WIN_10") = "10"
$oDict.Item("WIN_81") = "8.1"
$oDict.Item("WIN_8") = "8"
$oDict.Item("WIN_7") = "7"
$oDict.Item("WIN_VISTA") = "Vista"
$oDict.Item("WIN_XP") = "XP"
MsgBox(0, "", "MS Windows " & $oDict.Item(@OSVersion))