Skip to content

Commit 317ec6a

Browse files
authored
revert migration changes to function-iferror
1 parent 4201521 commit 317ec6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

powerapps-docs/maker/canvas-apps/functions/function-iferror.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The **IfError** function tests each of its arguments in order for an error value
2323

2424
Use **IfError** to replace error values with a valid value. For example, if it is possible that user input may result in a division by zero, replace it with a 0 or other valid value that is appropriate for your app so that downstream calculations can proceed.
2525

26-
Use **IfError** in [behavior formulas](../working-with-formulas-in-depth.md) to perform actions, check the results for errors, and if needed take further actions or display an error message to the user with [**ShowError**](function-showerror.md).
26+
Use **IfError** in [behavior formulas](../working-with-formulas-in-depth.md) to perform actions, check the results for errors, and if needed take further actions or display an error message to the user with [**Notify**](function-showerror.md).
2727

2828
If all of the arguments to **IfError** result in an error, the value of the last argument is returned (which will be an error value).
2929

@@ -39,7 +39,7 @@ If all of the arguments to **IfError** result in an error, the value of the last
3939
| --- | --- | --- |
4040
| **IfError( 1, 2 )** |The first argument is not an error. It is returned and subsequent arguments are not evaluated. | 1 |
4141
| **IfError( 1/0, 2 )** | The first argument is returning an error value (due to division by zero). The second argument is evaluated resulting in a non-error value which is returned. | 2 |
42-
| **IfError( 1/0, ShowError( "Division by Zero" ) )** | The first argument is returning an error value (due to division by zero). The second argument is evaluated which displays a messages to the user. The return value of **IfError** is the return value of **ShowError**, coerced to the same type as the first argument to **IfError** (a number). | 1 |
42+
| **IfError( 1/0, Notify( "There was an internal problem", NotificationType.Error ) )** | The first argument is returning an error value (due to division by zero). The second argument is evaluated which displays a messages to the user. The return value of **IfError** is the return value of **Notify**, coerced to the same type as the first argument to **IfError** (a number). | 1 |
4343
| **IfError( 1/0, 1/0, 2, 1/0, 3 )** | The first argument is returning an error value (due to division by zero). The second argument is evaluated, also resulting in an error value (another division by zero). The third argument is evaluated, which does not return in an error value which is returned. The fourth and fifth arguments are ignored. | 2 |
4444

4545
### Step by step

0 commit comments

Comments
 (0)