Xbasic
*if_error Function
Syntax
A *IF_ERROR(A expr,A errorValue)
Arguments
- expr
expression to evaluate and return if no error
- errorValue
Value error value to return
Description
Adds error checking around an expression - if there is an error in the expression, the errorValue is returned.
Discussion
Adds error checking around an expression - if there is an error in the expression, the errorValue is returned.
Example
goodvar = 3 ? *IF_ERROR(goodvar,2) = 3 ? *IF_ERROR(badvar,2) = 2
See Also