HostOS()
Description
Section titled “Description”The HostOS Lua function returns a string with the type of operating system of the device where the plugin is executed (for instance, “Windows”, “Linux”, or “Mac”).
Arguments
Section titled “Arguments”This function does not accept any arguments.
Return
Section titled “Return”- String:
The returned string is the operating system of the grandMA3 hardware or grandMA3 onPC computer.
Example
Section titled “Example”This example prints the operating system of the device in the Command Line History:
| Copy CodeLua |
| ``` |
| return function() |
Printf("The HostOS is "..HostOS())end