Skip to content

Commit 6cf4ed0

Browse files
authored
Clarify order for parameter evaluation
1 parent eb63dad commit 6cf4ed0

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

articles/logic-apps/workflow-definition-language-functions-reference.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: logic-apps
55
ms.suite: integration
66
ms.reviewer: jonfan, logicappspm
77
ms.topic: conceptual
8-
ms.date: 04/30/2020
8+
ms.date: 05/12/2020
99
---
1010

1111
# Reference guide to using functions in expressions for Azure Logic Apps and Power Automate
@@ -29,10 +29,6 @@ For example, you can calculate values by using math functions, such as the [add(
2929

3030
To find functions [based on their general purpose](#ordered-by-purpose), review the following tables. Or, for detailed information about each function, see the [alphabetical list](#alphabetical-list).
3131

32-
> [!NOTE]
33-
> In the syntax for parameter definitions, a question mark (?) that appears after a parameter
34-
> means the parameter is optional. For example, see [getFutureTime()](#getFutureTime).
35-
3632
## Functions in expressions
3733

3834
To show how to use a function in an expression, this example shows how you can get the value from the `customerName` parameter and assign that value to the `accountName` property by using the [parameters()](#parameters) function in an expression:
@@ -51,10 +47,7 @@ Here are some other general ways that you can use functions in expressions:
5147
| 1. Get the result from *functionName*. </br>2. Given that the result is an object with property *propertyName*, get that property's value. | "\@<*functionName*>(<*item*>).<*propertyName*>" |
5248
|||
5349

54-
For example, the `concat()` function can take two or more string values
55-
as parameters. This function combines those strings into one string.
56-
You can either pass in string literals, for example, "Sophia" and "Owen"
57-
so that you get a combined string, "SophiaOwen":
50+
For example, the `concat()` function can take two or more string values as parameters. This function combines those strings into one string. You can either pass in string literals, for example, "Sophia" and "Owen" so that you get a combined string, "SophiaOwen":
5851

5952
```json
6053
"customerName": "@concat('Sophia', 'Owen')"
@@ -70,7 +63,13 @@ you get a combined string, for example, "SophiaOwen":
7063

7164
Either way, both examples assign the result to the `customerName` property.
7265

73-
Here are the available functions ordered by their general purpose, or you can browse the functions based on [alphabetical order](#alphabetical-list).
66+
Here are some other notes about functions in expressions:
67+
68+
* Function parameters are evaluated from left to right.
69+
70+
* In the syntax for parameter definitions, a question mark (?) that appears after a parameter means the parameter is optional. For example, see [getFutureTime()](#getFutureTime).
71+
72+
The following sections organize functions based on their general purpose, or you can browse these functions in [alphabetical order](#alphabetical-list).
7473

7574
<a name="ordered-by-purpose"></a>
7675
<a name="string-functions"></a>
@@ -2350,8 +2349,7 @@ And returns this result: `"(c2ecc88d-88c8-4096-912c-d6f2e2b138ce)"`
23502349

23512350
### if
23522351

2353-
Check whether an expression is true or false.
2354-
Based on the result, return a specified value.
2352+
Check whether an expression is true or false. Based on the result, return a specified value. Parameters are evaluated from left to right.
23552353

23562354
```
23572355
if(<expression>, <valueIfTrue>, <valueIfFalse>)

0 commit comments

Comments
 (0)