We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd1ac7 commit 50af1bdCopy full SHA for 50af1bd
1 file changed
PipeScript.types.ps1xml
@@ -745,6 +745,22 @@ for (
745
746
</GetScriptBlock>
747
</ScriptProperty>
748
+ <ScriptProperty>
749
+ <Name>IsPipedFrom</Name>
750
+ <GetScriptBlock>
751
+ if ($this.Parent -isnot [Management.Automation.Language.PipelineAst]) { return $false }
752
+$this.Parent.PipelineElements.IndexOf($this) -lt ($this.Parent.PipelineElements.Count - 1)
753
+
754
+ </GetScriptBlock>
755
+ </ScriptProperty>
756
757
+ <Name>IsPipedTo</Name>
758
759
760
+$this.Parent.PipelineElements.IndexOf($this) -gt 0
761
762
763
764
<ScriptProperty>
765
<Name>Parameter</Name>
766
<GetScriptBlock>
0 commit comments