Vely logo install
examples
documentation

Vely 15.2.0 released on Jan 18, 2023
Articles updated Jan 17, 2023

exit-code


Issues with this documentation page? Report here.

Purpose:


Return exit code when running from the command_line.

Syntax:



exit-code <exit code>


Description:


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) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Vely elephant logo (c) 2022 DaSoftver LLC. This web page is licensed under CC-BY-SA-4.0.