- exit
Early exit
examples/intro/early_exit.cr
puts "before" answer = 42 if answer == 42 exit 3 end puts "after"
- Exit code defaults to 0
echo $? echo %ERROR_LEVEL%
puts "before" answer = 42 if answer == 42 exit 3 end puts "after"
echo $? echo %ERROR_LEVEL%