Skip to content
Anthony Headley edited this page Apr 19, 2020 · 1 revision

HostOS

HostOS() : string

Brief:

Returns the current operating system

Paramiters:

Name Description Optional

Returns:

string: "Windows" if on Windows string: "Linux" if on Console string: "Mac" if on MacOS ...

Examples:

local currentOS = HostOS()
Echo("OS = " .. currentOS)
Clone this wiki locally