os.version

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function os.version
Returns the version of the OS the computer is running.
Syntax os.version()
Returns string the version of the operating system of the Computer
Part of ComputerCraft
API OS

Examples

Grid paper.png  Example
Prints the version of the Computer's OS (assuming you are running it on a Computer).
Code
print(os.version())
Output CraftOS 1.6