Skip to main content
Version: v0.20.1

OS

Module Function​

exit(INTEGER)​

Returns ``

Terminates the program with the given exit code.

🚀 > OS.exit(1)
exit status 1

raise(INTEGER, STRING)​

Returns ``

Terminates the program with the given exit code and prints the error message.

🚀 > OS.raise(1, "broken")
🔥 RocketLang raised an error: "broken"
exit status 1

Properties​

NameValue