Difference between revisions of "Os.version"
From ComputerCraft Wiki
m (Updated references from "os" to "OS") |
MKlegoman357 (Talk | contribs) m (Fixed/Expanded) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=os.version | |name=os.version | ||
− | |returns=the version of the operating system of the Computer | + | |returns={{type|string}} the version of the operating system of the Computer |
|api=OS | |api=OS | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
Line 8: | Line 8: | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc= | + | |desc=Prints the version of the Computer's OS (assuming you are running it on a [[Computer]]). |
− | |code=print( os.version() ) | + | |code=[[print]]('''os.version()''') |
+ | |output=CraftOS 1.6 | ||
}} | }} | ||
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Latest revision as of 22:34, 3 June 2014
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
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 |