syntax:functions:iferror
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| syntax:functions:iferror [2016/06/11 10:35] – dmitry | syntax:functions:iferror [2021/08/16 03:15] (current) – [Arguments] 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, 'Infinity' ) | Infinity| | + | =====Arguments===== |
| - | | IfError( 1 + 0, ' | + | ^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 'Infinity' | ||
| + | |||
| + | iferror( 1+0, ' | ||
| + | |||
| + | iferror( 1/0, sqrt(' | ||
| + | |||
| + | \\ | ||
| + | ===== See also ===== | ||
| + | * [[syntax: | ||
| + | * [[syntax: | ||
| - | **See also** | ||
| - | * [[syntax: | ||
| - | * [[syntax: | ||
syntax/functions/iferror.1465655742.txt.gz · Last modified: by dmitry