i = getos(『detailed_information』);
function returns a code that indicates what operating system is running the program. The codes are:
An optional alphanumeric variable detailed_information can be passed to the function that will give detailed information on the operating system, including the operating system name and the version number. Note, however, that Windows version numbers do not necessarily match the official release numbers. For example, Windows 8.1 has a version number of 6.3.
The function returns the operating system code or, optionally, a text description of the operating system.
errmsg("Code = %d, Text = %s", getos(), operating_system_name);
// the above code might display, for example:
// Code = 10, Text = Windows;6.1
// Code = 20, Text = Android;4.2.2