Title here
Summary here
(let exec (fun (_command) (...)))
Execute a system specific command
Note: Return the output of the command as a String, or nil if it was disabled in the ArkScript build
command
: the command to execute, as a String(sys:exec "echo hello")
(let sleep (fun (_duration) (...)))
Sleep for a given duration (in milliseconds)
Note: Return nil
duration
: a Number representing a duration(sys:sleep 1000) # sleep for 1 second
(let exit (fun (_code) (...)))
Exit the program with the given exit code
Note: Any code after this function call won’t be executed
exitCode
: usually 0 for success and 1 for errors(sys:exit 0) # halt the virtual machine with given exit code (success)
(let platform <value>)
Platform on which the program is running (Windows, Mac OSX, Linux, FreeBSD, Unix, Other)
(let args <value>)
Arguments given to the program when running it from the command line