Haiyang (disambiguation)

Haiyang may refer to:

Places in China

Towns

Townships

Other uses

gollark: Changes I made:- check reactor methods in the loop- make the only thing in the `if` statement be setting `txt`, so that it runs the rest of the code for *both*- pass `print` multiple parameters, since it can use that happily- inline calls to stuff- `term` calls directly instead of `shell.run "clear"`, which is mildly more efficient- indentation
gollark: Here is the fixed version.
gollark: ```lualocal r = peripheral.wrap("back")while true do term.clear() term.setCursorPos(1, 1) local txt if r.getActive() then txt = "Aktiv" else txt = "Inaktiv" end print("Der Reaktor ist", txt) print(r.getEnergyStored(), "RF gespeichert") sleep(1)end```
gollark: Also, please use local variables and do indentation.
gollark: What you need to do is check `r.getActive` and the other stuff *in the loop*, and ensure that both branches correctly yield and print everything.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.