os.istarget
Checks the target operating system against a particular identifier or tag. See os.getSystemTags for documentation about OS tags.
Examples
print("Android: " .. os.istarget("android"))
print("Mobile: " .. os.istarget("mobile"))
print("Desktop: " .. os.istarget("desktop"))
See Also
Availability
Premake 5.0.0 alpha 12 or later.