This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/os.is.md
2021-03-12 22:10:24 +01:00

27 lines
752 B
Markdown

Checks the current operating system identifier against a particular value.
```lua
os.is("id")
```
### Parameters ###
`id` is an operating system identifier; see [system()](system.md) for a complete list of identifiers.
Note that this function tests against the OS being targeted, which is not necessarily the same as the OS on which Premake is being run. If you are running on Mac OS X and generating Visual Studio project files, the identifier is "Windows", since that is the OS being targeted by the Visual Studio action.
### Return Value ###
**True** if the supplied ID matches the current operating system identifier, **false** otherwise.
### Availability ###
Premake 4.0 or later.
### See Also ###
* [os.getversion](os.getversion.md)