MatthewGB

Code bin

Apr 10th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. for done = false do
  2. if ps[i] == "cryptographic accelerator_0" then
  3. peripheral.wrap("cryptographic accelerator_0")
  4. print("Found crypto!")
  5. done = true
  6. elif ps[i] == nil then
  7. print("No more peripherals to be found")
  8. done = true
  9. else
  10. print("Found invalid peripheral!")
  11. i = i + 1
  12. end
  13. print("This shouldn't appear")
  14. end
Advertisement
Add Comment
Please, Sign In to add comment