Skip to content

Latest commit

 

History

History

Where-Object

Where-Object

When Where-Object is used in a pipeline with other commands and its scriptblock causes an error then the error info tends to be not clear.

Where-Object can be replaced with .{process{if (...) {$_}}}. The latter works faster and does not obfuscate information of potential errors.

Scripts

See also