You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/logic-apps/workflow-definition-language-functions-reference.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: logic-apps
5
5
ms.suite: integration
6
6
ms.reviewer: jonfan, logicappspm
7
7
ms.topic: conceptual
8
-
ms.date: 04/30/2020
8
+
ms.date: 05/12/2020
9
9
---
10
10
11
11
# 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(
29
29
30
30
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).
31
31
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
-
36
32
## Functions in expressions
37
33
38
34
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:
51
47
| 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*>" |
52
48
|||
53
49
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":
58
51
59
52
```json
60
53
"customerName": "@concat('Sophia', 'Owen')"
@@ -70,7 +63,13 @@ you get a combined string, for example, "SophiaOwen":
70
63
71
64
Either way, both examples assign the result to the `customerName` property.
72
65
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).
74
73
75
74
<aname="ordered-by-purpose"></a>
76
75
<aname="string-functions"></a>
@@ -2350,8 +2349,7 @@ And returns this result: `"(c2ecc88d-88c8-4096-912c-d6f2e2b138ce)"`
2350
2349
2351
2350
### if
2352
2351
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.
0 commit comments