A
A
Anton2021-05-13 11:57:29
PowerShell
Anton, 2021-05-13 11:57:29

How to select keys from an array by value?

Good afternoon!
I have an array with a floating number of elements (a string from a CSV file)
How do I select keys with a specific value?
I tried
$row | select -Property Key -Value -eq "1"
it doesn’t work
or am I going from the wrong side at all?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Bezrukov, 2021-05-13
@NortheR73

$row | where {$_.Key -eq "1"}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question