<doc>
	<legacy_id>1297</legacy_id>
	<name>systemVersion</name>
	<type>function</type>

	<syntax>
		<example>the systemVersion</example>
		<example>systemVersion()</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary><glossary tag="return">Returns</glossary> the version number of the operating system.</summary>

	<examples>
<example>the systemVersion</example>
<example>if the systemVersion is &quot;8.6.0&quot; then set the OSVersion to &quot;8.6&quot;</example>
	</examples>

	<history>
		<introduced version="1.0">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		<changed version="4.5.2">iOS support added</changed>
<changed version="4.6.1">Android support added</changed>
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
		<ios/>
		<android/>
	</platforms>

	<classes>
		<desktop/>
		<server/>
		<web/>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
		<category>The System Environment</category>
	</classification>

	<references>
		<function tag="libURLVersion">libURLVersion Function</function>
		<function tag="QTVersion">QTVersion Function</function>
		<function tag="buildNumber">buildNumber Function</function>
		<function tag="environment">environment Function</function>
	</references>

	<description>
	<overview>Use the <b>systemVersion</b> <control_st tag="function">function</control_st> to determine whether the current version of the operating system supports a particular feature.</overview>

		<parameters>
		</parameters>

	<value>The <b>systemVersion</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <keyword tag="string">string</keyword>.</value>
	<comments>The exact format of the <b>systemVersion</b> varies, depending on the operating system.<p></p><p>On Mac OS and OS X systems, the <b>systemVersion</b> returns three integers separated by decimal points. For example, on Mac OS 8.6, the <b>systemVersion</b> <glossary tag="return">returns</glossary> &quot;8.6.0&quot;.</p><p></p><p>On Windows systems, the <b>systemVersion</b> returns the internal Windows version designation. The internal designations for several Windows versions are as follows:</p><p></p><p>* Windows 95 - Windows 4.0</p><p>* Windows 98 - Windows 4.10 (may return other numbers)</p><p>* Windows Me - Windows 4.90 (may return other numbers)</p><p>* Windows NT 4 - NT 4.0  </p><p>* Windows 2000 - NT 5.0</p><p>* Windows XP - NT 5.1</p><p>* Windows Vista - NT 6.0</p><p>* Windows 7 - NT 6.1</p><p></p><p>Because certain sub-versions of Windows 98 and Windows Me return slightly different values for the <b>systemVersion</b>, you can check for these versions by testing whether the number is in a range, as in the following example:</p><p></p><p>get word 2 of the systemVersion</p><p>if it &gt;= 4.1 and it &lt; 4.9 then answer &quot;Windows 98!&quot;</p><p></p><p>On iOS the <b>systemVersion</b> 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.</p><p></p><p>On Android the <b>systemVersion</b> 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</p><p>Android 2.3.1 installed, this property will return 2.3.1.</p><p></p><p></p><note>When running a Mac OS application in the Classic box on an OS X system, the <b>systemVersion</b> function returns the version number of the Classic system folder.</note></comments>
	</description>
</doc>