Vely logo install | documentation | examples | changelog
16.10.0 released May 10, 2023
exit-code

Purpose: Return exit code when running from the command_line.

exit-code <exit code>

exit-code specifies <exit code> (which must be an integer expression) when the program runs from the command_line.

exit-code can be specified anywhere in the code, and does not mean exiting the program. To exit the program, either use exit-request or simply allow request function to reach its end.

When exit-code is not used, the default exit code is 0.
Examples
When the program exits, its exit code will be 12:
exit-code 12
...
exit-request

See also
Program execution ( exec-program   exit-code  )  SEE ALL (documentation)


Copyright (c) 2017-2023 Dasoftver LLC