Benefits: shorten code and use Try() with precision on steps inside larger expressions.
Current code where we want to proceed on non-error but have no need for catch
Code: Select all
Try a
catch
return
MsgBox 1
Code: Select all
If !Try(a)
return
MsgBox 1
Code: Select all
If Try(a)
MsgBox 1
Code: Select all
try a
catch {
try b
catch {
try c
catch {
}
}
}
Code: Select all
If !Try(a)
If !Try(b)
Try(c)
Code: Select all
Try(a) || Try(b) || Try(c)