Jump to content

Exceptions: Difference between revisions

Line 1,557:
A shortened catch does not allow an else section (action for no exception).
 
<lang langur>catch100 if/ .err["cat"] == "math" {0
 
catch if .err["cat"] == "math" {
# change result
} else {
1,007

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.