syntax:functions:iferror
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
syntax:functions:iferror [2016/06/08 00:04] – dmitry | syntax:functions:iferror [2021/08/16 03:14] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== IfError(expression1, | ====== IfError(expression1, | ||
+ | Category: | ||
- | Returns | + | \\ |
+ | =====Description===== | ||
+ | This function returns | ||
+ | \\ | ||
+ | =====Use cases===== | ||
+ | This function can be used as an error handler in cases where an expression could potentially return an error. | ||
- | ^ | + | \\ |
- | | IfError( 1 / 0, 'Eternity' ) | Eternity| | + | =====Arguments===== |
- | | IfError( 1 + 0, 'Eternity' ) | 1| | + | ^Argument^Type^Description^ |
+ | |expression1|Expression|Any expression that could potentially result in an error.| | ||
+ | |expression2|Expression|Any expression.| | ||
+ | **Return value type:** Any (the data type of the return value of // | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | If both // | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | iferror( 1/0, 'Inifity' ) //Returns ' | ||
+ | |||
+ | iferror( 1+0, 'Infinity' ) // | ||
+ | |||
+ | iferror( 1/0, sqrt(' | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
- | **See also** | ||
- | * [[syntax: | ||
- | * [[syntax: |
syntax/functions/iferror.txt · Last modified: 2021/08/16 03:15 by craigt