Skip to content

Commit 3156fb8

Browse files
authored
add experimental note (#4854)
1 parent 8dc36c4 commit 3156fb8

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

reference/7/Microsoft.PowerShell.Core/About/about_If.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ else {
9696

9797
### Using the ternary operator syntax
9898

99+
> [!NOTE]
100+
> This is an experimental feature. For more information see
101+
> [about_Experimental_Features](about_Experimental_Features.md).
102+
99103
PowerShell 7.0 introduced a new syntax using the ternary operator. It follows the C# ternary
100104
operator syntax:
101105

reference/7/Microsoft.PowerShell.Core/About/about_Operators.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,13 @@ $(Get-WmiObject win32_Directory)
444444

445445
#### Ternary operator `? <if-true> : <if-false>`
446446

447-
You can use the ternary operator as a replacement for the `if-else` statement in
448-
simple conditional cases. The ternary operator was introduced in PowerShell 7.0.
447+
> [!NOTE]
448+
> This is an experimental feature. For more information see
449+
> [about_Experimental_Features](about_Experimental_Features.md).
450+
451+
You can use the ternary operator as a replacement for the `if-else` statement
452+
in simple conditional cases. The ternary operator was introduced in PowerShell
453+
7.0 as an experimental feature.
449454

450455
For more information, see [about_If](about_If.md).
451456

reference/7/Microsoft.PowerShell.Core/ForEach-Object.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Starting in Windows PowerShell 3.0, there are two different ways to construct a
7373
represent the current input object in the script block. Use the `$using:` keyword to pass variable
7474
references to the running script.
7575

76+
> [!NOTE]
77+
> This is an experimental feature. For more information see
78+
> [about_Experimental_Features](about/about_Experimental_Features.md).
79+
7680
## EXAMPLES
7781

7882
### Example 1: Divide integers in an array
@@ -601,7 +605,7 @@ This cmdlet returns objects that are determined by the input.
601605
block. This is significantly more overhead than running `ForEach-Object` normally with sequential
602606
processing. It is important to use `-Parallel` where the overhead of running in parallel is small
603607
compared to work the script block performs. For example:
604-
608+
605609
- Compute intensive scripts on multi-core machines
606610
- Scripts that spend time waiting for results or doing file operations
607611

0 commit comments

Comments
 (0)