os.version

From ComputerCraft
Jump to: navigation, search

os.version
Function
Syntax
os.version()
Returns string
API os
Source CC:Tweaked (source)

Returns a string representing the name and version of CraftOS.

ExampleExampleGet CraftOS version
Retrieves and prints the CraftOS version.
Code
print(os.version())
Output
CraftOS 1.8