exit

exit

exit

Function

Sets the exit value and ends the current script execution.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyNoEmptyExit value.

Return value

TypeDescription
Any/EmptyReturn and log the exit value.

Example

Notes

  • The value passed in is written to the output; if the exit value is empty, it will be displayed as empty.