fbMarcel

idtest

Jan 6th, 2021 (edited)
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. local d = os.getComputerID()
  4. if d<10 then
  5.   print("one digit")
  6.   print("ID:   #",d)
  7. elseif d>99 then
  8.   print("three digits")
  9.   print("ID: #",d)
  10. else
  11.   print("two digits")
  12.   print("ID:  #",d)
  13. end
Add Comment
Please, Sign In to add comment