osMajorVersion()

Synopsis

Returns the major version of the Operating System currently running the Intent Kernel process.

Syntax

osMajorVersion ( ) As String 

Example 1

OS version major number
Intent >osMajorVersion() --> "6" 

Example 2

Windows XP check
Intent >makeNumber(osMajorVersion())>=5
--> True
OS information
Intent >"Running on " & osName() & " Version " & osMajorVersion() & "." & osMinorVersion()
--> "Running on Microsoft Windows NT 6.1.7600.0 Version 6.1"