os.getComputerLabel

From ComputerCraft
(Redirected from Os.computerLabel)
Jump to: navigation, search

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

Returns a string representing the computer's label.

ExampleExampleGet the Computer Label
Retrieves and prints the Computer's Label.
Code
print(os.getComputerLabel())
Output
The computer's label, or nil if none has been set.