Skip to content

Commit b97a7e1

Browse files
committed
more tweaks
1 parent 1bfa2cf commit b97a7e1

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ search.app:
1818
Concatenates individual strings of text and strings in [tables](../working-with-tables.md).
1919

2020
## Description
21+
22+
The **Concatenate** function concatenates a mix of individual strings and a single-column table of strings. Used with individual strings, this function is equivalent to using the **&** [operator](operators.md).
23+
2124
The **Concat** function concatenates the result of a formula applied across all the [records](../working-with-tables.md#records) of a table, resulting in a single string. Use this function to summarize the strings of a table, just as the **[Sum](function-aggregates.md)** function does for numbers.
2225

2326
[!INCLUDE [record-scope](../../../includes/record-scope.md)]
2427

2528
Use the [**Split** function](function-split.md) or [**MatchAll** function](function-ismatch.md) to split a string into a table of substrings.
2629

27-
The **Concatenate** function concatenates a mix of individual strings and a single-column table of strings. Used with individual strings, this function is equivalent to using the **&** [operator](operators.md).
28-
2930
## Syntax
3031
**Concat**( *Table*, *Formula* )
3132

@@ -76,8 +77,8 @@ Select the button (hold down the Alt key while clicking the button).
7677

7778
| Formula | Description | Result |
7879
|---------|-------------|--------|
79-
| **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, " |
80-
| **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, " |
80+
| **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, " |
81+
| **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, " |
8182

8283
### Trimming the end
8384

@@ -87,8 +88,8 @@ In some cases these extra characters won't matter, for example if a single space
8788

8889
| Formula | Description | Result |
8990
|---------|-------------|--------|
90-
| **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" |
91-
| **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" |
91+
| **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" |
92+
| **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" |
9293

9394
### Split and MatchAll
9495

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ Select the button (hold down the Alt key while clicking the button).
5959

6060
| Formula | Description | Result |
6161
|---------|-------------|--------|
62-
| **And( a, b )** | Tests the values of **a** and **b**. Since one of the arguments is *false*, the function returns *false* | *false* |
63-
| **a And b** | Same as the previous example, using Visual Basic notation | *false* |
64-
| **a && b** | Same as the previous example, using JavaScript notation | *false* |
65-
| **Or( a, b )** | Tests the values of **a** and **b**. Since one of the arguments is *true*, the function returns *true* | *true* |
66-
| **a Or b** | Same as the previous example, using Visual Basic notation | *true* |
67-
| **a || b** | Same as the previous example, using JavaScript notation | *true* |
68-
| **Not( a )** | Tests the value of **a**. Since the argument is *false*, the function returns the opposite *true* | *true* |
69-
| **Not a** | Same as the previous example, using Visual Basic notation | *true* |
70-
| **! a** | Same as the previous example, using JavaScript notation | *true* |
71-
| **Len(&nbsp;s&nbsp;)&nbsp;<&nbsp;20 And&nbsp;Not&nbsp;IsBlank(&nbsp;s&nbsp;)** | Tests if the length of **s** 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* |
62+
| **And( a, b )** | Tests the values of **a** and **b**. Since one of the arguments is *false*, the function returns *false*. | *false* |
63+
| **a And b** | Same as the previous example, using Visual Basic notation. | *false* |
64+
| **a && b** | Same as the previous example, using JavaScript notation. | *false* |
65+
| **Or( a, b )** | Tests the values of **a** and **b**. Since one of the arguments is *true*, the function returns *true*. | *true* |
66+
| **a Or b** | Same as the previous example, using Visual Basic notation. | *true* |
67+
| **a &#124;&#124; b** | Same as the previous example, using JavaScript notation. | *true* |
68+
| **Not( a )** | Tests the value of **a**. Since the argument is *false*, the function returns the opposite *true*. | *true* |
69+
| **Not a** | Same as the previous example, using Visual Basic notation. | *true* |
70+
| **! a** | Same as the previous example, using JavaScript notation. | *true* |
71+
| **Len(&nbsp;s&nbsp;)&nbsp;<&nbsp;20 And&nbsp;Not&nbsp;IsBlank(&nbsp;s&nbsp;)** | Tests if the length of **s** 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* |
7272
| **Or(&nbsp;Len(&nbsp;s&nbsp;)&nbsp;<&nbsp;10, x&nbsp;<&nbsp;100, y&nbsp;<&nbsp;100&nbsp;)** | Tests if the length of **s** 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* |
7373
| **Not IsBlank(&nbsp;s&nbsp;)** | Test if **s** is *blank* which returns *false*. **Not** returns the opposite of this result which is *true*. | *true* |
7474

0 commit comments

Comments
 (0)