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: powerapps-docs/maker/canvas-apps/functions/function-concatenate.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -63,23 +63,23 @@ Select the button (hold down the Alt key while clicking the button).
63
63
64
64
| Formula | Description | Result |
65
65
|---------|-------------|--------|
66
-
|`Concatenate( LastName, ", ", FirstName )`| Concatenates the value in **LastName**, the string **", "** (a comma followed by a space), and the value in **FirstName**. | "Doe, Jane" |
67
-
|`LastName & ", " & FirstName`| Same as the previous example, using the **&** operator instead of the function. | "Doe, Jane" |
68
-
|`Concatenate( FirstName, " ", LastName )`| Concatenates the value in **FirstName**, the string **" "** (a single space), and the value in **LastName**. | "Jane Doe" |
69
-
|`FirstName & " " & LastName`| Same as the previous example, using the **&** operator instead of the function. | "Jane Doe" |
66
+
|**Concatenate( LastName, ", ", FirstName )**| Concatenates the value in **LastName**, the string **", "** (a comma followed by a space), and the value in **FirstName**. | "Doe, Jane" |
67
+
|**LastName & ", " & FirstName**| Same as the previous example, using the **&** operator instead of the function. | "Doe, Jane" |
68
+
|**Concatenate( FirstName, " ", LastName )**| Concatenates the value in **FirstName**, the string **" "** (a single space), and the value in **LastName**. | "Jane Doe" |
69
+
|**FirstName & " " & LastName**| Same as the previous example, using the **&** operator instead of the function. | "Jane Doe" |
70
70
71
71
### Concatenate with single column table
72
72
73
73
| Formula | Description | Result |
74
74
|---------|-------------|--------|
75
-
|`Concatenate( "Name: ", Products.Name, ", Type: ", Products.Type )`| For each record in the **Products** table, concatenates the string **"Name: "**, the name of the product, the string **", Type: "** and the type of the product. ||
75
+
|**Concatenate( "Name: ", Products.Name, ", Type: ", Products.Type )**| For each record in the **Products** table, concatenates the string **"Name: "**, the name of the product, the string **", Type: "** and the type of the product. ||
76
76
77
77
### Concat function
78
78
79
79
| Formula | Description | Result |
80
80
|---------|-------------|--------|
81
-
|`Concat( Products, Name & ", " )`| Evaluates the formula **Name & ", "** for each record of **Products** and concatenates the results together into a single text string. | "Violin, Cello, Trumpet, " |
82
-
|`Concat( Filter( Products, Type = "String" ), Name & ", " )`| Evaluates the formula **Name & ", "** for each record of **Products** that satifies the filter **Type = "String"** and concatenates the results together into a single text string. | "Violin, Cello, " |
81
+
|**Concat( Products, Name & ", " )**| Evaluates the formula **Name & ", "** for each record of **Products** and concatenates the results together into a single text string. | "Violin, Cello, Trumpet, " |
82
+
|**Concat( Filter( Products, Type = "String" ), Name & ", " )**| Evaluates the formula **Name & ", "** for each record of **Products** that satifies the filter **Type = "String"** and concatenates the results together into a single text string. | "Violin, Cello, " |
83
83
84
84
### Trimming the end
85
85
@@ -89,17 +89,17 @@ In some cases these extra characters won't matter, for example if a single space
89
89
90
90
| Formula | Description | Result |
91
91
|---------|-------------|--------|
92
-
|`Left( Concat(Products,Name & ", " ), Len(Concat(Products,Name & ", " ) ) - 2 )`| Returns the result of **Concat** but removes the last two characters, the extra separator that is not desired. | "Violin, Cello, Trumpet" |
93
-
|`Match( Concat(Products,Name & ", " ), "^(?<trim>.*),$" ).trim`| Returns the characters of **Concat** from the beginning of the text string (^) to the end ($) but does not include the unwanted comma and space at the end. | "Violin, Cello, Trumpet" |
92
+
|**Left( Concat( Products, Name & ", " ), Len( Concat( Products, Name & ", " ) ) - 2 )**| Returns the result of **Concat** but removes the last two characters, the extra separator that is not desired. | "Violin, Cello, Trumpet" |
93
+
|**Match( Concat( Products, Name & ", " ), "^(?<trim>.*), $" ).trim**| Returns the characters of **Concat** from the beginning of the text string (^) to the end ($) but does not include the unwanted comma and space at the end. | "Violin, Cello, Trumpet" |
94
94
95
95
### Split and MatchAll
96
96
97
97
The **Split** and **MatchAll** functions can be used to reverse **Concat** when used with a separator.
98
98
99
99
| Formula | Description | Result |
100
100
|---------|-------------|--------|
101
-
|`Split( Concat( Products, Name & ", " ), ", " )`| Splits the text string with the separator **", "**. Since there is a comma and space at the end of the string, this becomes an extra row in the result with an empty string. ||
102
-
| `MatchAll( Concat( Products, Name & ", " ), "[^\s,]+" ).FullMatch` | Splits the text string based on characters that are not a space or a comma. In this case, the extra comma and space at the end of the string is automatically removed. | 
101
+
|**Split( Concat( Products, Name & ", " ), ", " )**| Splits the text string with the separator **", "**. Since there is a comma and space at the end of the string, this becomes an extra row in the result with an empty string. ||
102
+
| **MatchAll( Concat( Products, Name & ", " ), "[^\s,]+" ).FullMatch** | Splits the text string based on characters that are not a space or a comma. In this case, the extra comma and space at the end of the string is automatically removed. | 
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/function-logicals.md
+8-27Lines changed: 8 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -18,40 +18,21 @@ search.app:
18
18
Boolean logic functions, commonly used to manipulate the results of comparisons and tests.
19
19
20
20
## Description
21
-
The **And** function returns **true** if all of its arguments are **true**. With two arguments:
21
+
The **And** function returns **true** if all of its arguments are **true**.
22
22
23
-
| First argument | Second argument | Result |
24
-
| ---------- | -------------- | --------|
25
-
|*false*|*false*|*false*|
26
-
|*false*|*true*|*false*|
27
-
|*true*|*false*|*false*|
28
-
|*true*|*true*|*true*|
23
+
The **Or** function returns **true** if any of its arguments are **true**.
29
24
30
-
The **Or** function returns **true** if any of its arguments are**true**. With two arguments:
25
+
The **Not** function returns **true** if its argument is **false**; it returns **false** if its argument is**true**.
31
26
32
-
| First argument | Second argument | Result |
33
-
| ---------- | -------------- | --------|
34
-
|*false*|*false*|*false*|
35
-
|*false*|*true*|*true*|
36
-
|*true*|*false*|*true*|
37
-
|*true*|*true*|*true*|
38
-
39
-
The **Not** function returns **true** if its argument is **false**; it returns **false** if its argument is **true**. It always takes one argument:
40
-
41
-
| Argument | Result |
42
-
| -------- | ------ |
43
-
|*false*|*true*|
44
-
|*true*|*false*|
45
-
46
-
These logical functions are consistent with Excel. You can also use [operators](operators.md) to perform these same operations, using either Visual Basic or JavaScript syntax:
27
+
These functions are consistent with Excel. You can also use [operators](operators.md) to perform these same operations, using either Visual Basic or JavaScript syntax:
These functions work with logical values. They can't be passed a number or a string directly; instead a comparison or test must be made. For example, a comparison such as **x > 1** is a logical formula that evaluates to the Boolean value **true** if **x** is greater than **1**. If **x** is less than **1**, the formula evaluates to **false.**
35
+
These functions work with logical values. They can't be passed a number or a string directly; instead a comparison or test must be made. For example, a comparison such as **x > 1** is a logical formula that evaluates to the Boolean value **true** if **x** is greater than **1**. If **x** is less than **1**, the formula evaluates to **false**.
@@ -89,9 +70,9 @@ Select the button (hold down the Alt key while clicking the button).
89
70
|**Not( a )**| Tests the value of **a**. Since the argument is *false*, the function returns the opposite *true*|*true*|
90
71
|**Not a**| Same as the previous example, using Visual Basic notation |*true*|
91
72
|**! a**| Same as the previous example, using JavaScript notation |*true*|
92
-
|**Len(string ) < 20 AndNotIsBlank(string)**| Tests if the length of **string** is less than 20 and if it is not a **blank** value. Since the length is less than 20 and it is not blank, the result is *true*|*true*|
93
-
|**Or(Len(string ) < 10, x < 100, y < 100)**| Tests if the length of **string** is less than 10 which is *false*, if **x** is less than 100 which is *true*, and if y is less than 100 which is *false*. Since one of the arguments to **Or** is *true*, the function returns *true*. |*true*|
94
-
|**Not IsBlank(string)**| Test if **string** is *blank* which returns *false*. **Not** returns the opposite of this result which is *true*. |*true*|
73
+
|**Len( string ) < 20 And Not IsBlank( string )**| Tests if the length of **string** is less than 20 and if it is not a **blank** value. Since the length is less than 20 and it is not blank, the result is *true*|*true*|
74
+
|**Or( Len( string ) < 10, x < 100, y < 100 )**| Tests if the length of **string** is less than 10 which is *false*, if **x** is less than 100 which is *true*, and if y is less than 100 which is *false*. Since one of the arguments to **Or** is *true*, the function returns *true*. |*true*|
75
+
|**Not IsBlank( string )**| Test if **string** is *blank* which returns *false*. **Not** returns the opposite of this result which is *true*. |*true*|
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/functions/operators.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Some of these operators are dependent on the language of the author. See [Globa
45
45
|**in**| |**"The" in "The keyboard and the monitor..."**| Substring test (case-insensitive) |
46
46
|**@**|[Disambiguation operator](#disambiguation-operator)|**MyTable[@fieldname]**| Field disambiguation |
47
47
|**@**| |**[@MyVariable]**| Global disambiguation |
48
-
|**,**<br>[[language dependent](../global-apps.md)]| List separator |**If( X < 10, "Low", "Good" )**<br>**{ X: 12, Y: 32 }**<br>**[ 1, 2, 3 ]**| Separates: <ul><li>arguments in function calls</li><li>fields in a [record](../working-with-tables.md#elements-of-a-table)</li><li>records in a [Value table](../working-with-tables.md#inline-syntax)</li></ul>. This character depends on the language. |
48
+
|**,**<br>[[language dependent](../global-apps.md)]| List separator |**If( X < 10, "Low", "Good" )**<br>**{ X: 12, Y: 32 }**<br>**[ 1, 2, 3 ]**| Separates: <ul><li>arguments in function calls</li><li>fields in a [record](../working-with-tables.md#elements-of-a-table)</li><li>records in a [table](../working-with-tables.md#inline-value-tables)</li></ul>. This character depends on the language. |
49
49
|**;**<br>[[language dependent](../global-apps.md)]| Formula chaining |**Collect(T, A); Navigate(S1, "")**| Separate invocations of functions in behavior properties. The chaining operator depends on the language. |
50
50
|**Parent**|[Parent operator](#parent-operator)|**Parent.Fill**| Access to properties of a control container |
51
51
|**ThisItem**|[ThisItem operator](#thisitem-operator)|**ThisItem.FirstName**| Access to fields of a Gallery or form control |
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/global-apps.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ The change in the PowerApps list separator is consistent with what happens to th
68
68
69
69
* Arguments in function calls.
70
70
* Fields in a [record](working-with-tables.md#elements-of-a-table).
71
-
* Records in a [Value table](working-with-tables.md#inline-syntax).
71
+
* Records in a [table](working-with-tables.md#inline-value-table).
72
72
73
73
For example, consider the following formula expressed in a language and region that uses dot or period as the decimal separator, such as Japan or the United Kingdom:
0 commit comments