Skip to content

Commit 75f10ae

Browse files
committed
fixups more fixups
1 parent 74be8b9 commit 75f10ae

File tree

4 files changed

+21
-40
lines changed

4 files changed

+21
-40
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,23 @@ Select the button (hold down the Alt key while clicking the button).
6363

6464
| Formula | Description | Result |
6565
|---------|-------------|--------|
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" |
7070

7171
### Concatenate with single column table
7272

7373
| Formula | Description | Result |
7474
|---------|-------------|--------|
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. | ![](media/function-concatenate/single-column.png) |
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. | ![](media/function-concatenate/single-column.png) |
7676

7777
### Concat function
7878

7979
| Formula | Description | Result |
8080
|---------|-------------|--------|
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, " |
8383

8484
### Trimming the end
8585

@@ -89,17 +89,17 @@ In some cases these extra characters won't matter, for example if a single space
8989

9090
| Formula | Description | Result |
9191
|---------|-------------|--------|
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(&nbsp;Products,&nbsp;Name&nbsp;&&nbsp;",&nbsp;"&nbsp;), Len(&nbsp;Concat(&nbsp;Products,&nbsp;Name&nbsp;&&nbsp;",&nbsp;"&nbsp;) ) - 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(&nbsp;Products,&nbsp;Name&nbsp;&&nbsp;",&nbsp;"&nbsp;), "^(?&lt;trim&gt;.*),&nbsp;$" ).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" |
9494

9595
### Split and MatchAll
9696

9797
The **Split** and **MatchAll** functions can be used to reverse **Concat** when used with a separator.
9898

9999
| Formula | Description | Result |
100100
|---------|-------------|--------|
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. | ![](media/function-concatenate/split.png) |
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. | ![](media/function-concatenate/matchall.png)
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. | ![](media/function-concatenate/split.png) |
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. | ![](media/function-concatenate/matchall.png)
103103

104104

105105

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

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,21 @@ search.app:
1818
Boolean logic functions, commonly used to manipulate the results of comparisons and tests.
1919

2020
## 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**.
2222

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**.
2924

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**.
3126

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:
4728

4829
| Function notation | Visual Basic operator notation | JavaScript operator notation |
4930
| -------------|------------|--------|
5031
| **And( x, y )** | **x And y** | **x && y** |
5132
| **Or( x, y )** | **x Or y** | **x &#124;&#124; y** |
5233
| **Not( x )** | **Not x** | **! x** |
5334

54-
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**.
5536

5637
## Syntax
5738
**And**( *LogicalFormula1*, *LogicalFormula2* [, *LogicalFormula3*, ... ] )<br>
@@ -89,9 +70,9 @@ Select the button (hold down the Alt key while clicking the button).
8970
| **Not( a )** | Tests the value of **a**. Since the argument is *false*, the function returns the opposite *true* | *true* |
9071
| **Not a** | Same as the previous example, using Visual Basic notation | *true* |
9172
| **! a** | Same as the previous example, using JavaScript notation | *true* |
92-
| **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* |
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(&nbsp;string&nbsp;)&nbsp;<&nbsp;20 And&nbsp;Not&nbsp;IsBlank(&nbsp;string&nbsp;)** | 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(&nbsp;Len(&nbsp;string&nbsp;)&nbsp;<&nbsp;10, x&nbsp;<&nbsp;100, y&nbsp;<&nbsp;100&nbsp;)** | 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(&nbsp;string&nbsp;)** | Test if **string** is *blank* which returns *false*. **Not** returns the opposite of this result which is *true*. | *true* |
9576

9677

9778

powerapps-docs/maker/canvas-apps/functions/operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Some of these operators are dependent on the language of the author. See [Globa
4545
| **in** | &nbsp; | **&quot;The&quot; in &quot;The keyboard and the monitor...&quot;** | Substring test (case-insensitive) |
4646
| **@** | [Disambiguation operator](#disambiguation-operator) | **MyTable[@fieldname]** | Field disambiguation |
4747
| **@** | &nbsp; | **[@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. |
4949
| **;**<br>[[language dependent](../global-apps.md)] | Formula chaining | **Collect(T, A); Navigate(S1, &quot;&quot;)** | Separate invocations of functions in behavior properties. The chaining operator depends on the language. |
5050
| **Parent** | [Parent operator](#parent-operator) | **Parent.Fill** | Access to properties of a control container |
5151
| **ThisItem** | [ThisItem operator](#thisitem-operator) | **ThisItem.FirstName** | Access to fields of a Gallery or form control |

powerapps-docs/maker/canvas-apps/global-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The change in the PowerApps list separator is consistent with what happens to th
6868

6969
* Arguments in function calls.
7070
* 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).
7272

7373
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:
7474

0 commit comments

Comments
 (0)