systemVersion

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the systemVersion
systemVersion()
Summary

Returns the version number of the operating system.

Introduced1.0
OSmac, windows, linux, ios, android, web
Platformsdesktop, server, mobile
Example
the systemVersion
if the systemVersion begins with "10.11." then set the OSVersion of me to "10.11"
Values
NameTypeDescription
return

The systemVersion function returns a string.

RelatedKeyword: string
Function: environment, buildNumber, libURLVersion, QTVersion
Glossary: return
Control Structure: function
Description

Use the systemVersion function to determine whether the current version of the operating system supports a particular feature.

The exact format of the systemVersion varies, depending on the operating system.

On Mac OS X systems, the systemVersion returns three integers separated by decimal points. For example, on Mac OS X "El Capitan", the systemVersion returns "10.11.0".

On Windows systems, the systemVersion returns the internal Windows version designation. The internal designations for several Windows versions are as follows:

  • Windows XP: "NT 5.1"
  • Windows Vista: "NT 6.0"
  • Windows 7: "NT 6.1"
  • Windows 8: "NT 6.2"
  • Windows 8.1: "NT 6.3"
  • Windows 10: "NT 10.0"

On iOS the systemVersion will return the iOS version number. For example, if the device has iOS 4.3 installed, this property returns "4.3" ; if the device has iOS 3.1.3 installed, this property will return "3.1.3".

On Android the systemVersion will return the Android OS version number. For example, if the device has Android 2.2 installed, this property returns "2.2" ; if the device has Android 2.3.1 installed, this property will return "2.3.1".

On Web the systemVersion is empty.