Difference between revisions of "Os.version"
From ComputerCraft Wiki
m (moved Os.version() to Os.version) |
MKlegoman357 (Talk | contribs) m (Fixed/Expanded) |
||
| (5 intermediate revisions by 4 users 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= | + | |api=OS |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Returns the version of the OS the computer is running. | |desc=Returns the version of the OS the computer is running. | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
| − | |desc= | + | |desc=Prints the version of the Computer's OS (assuming you are running it on a [[Computer]]). |
| − | |code= | + | |code=[[print]]('''os.version()''') |
| + | |output=CraftOS 1.6 | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Latest revision as of 22:34, 3 June 2014
| 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
| Prints the version of the Computer's OS (assuming you are running it on a Computer). | |
| Code |
print(os.version()) |
| Output | CraftOS 1.6 |