Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple Powershell Example 2
$Cars = "Tyota","Hyundai","Ford"
#Where in Array
$Cars | Where-Object { $_ -eq "Hyundai" }
#Where in Array simpler
$Cars | Where { $_ -eq "Hyundai" }
#Where in Array much simpler
$Cars | ? { $_ -eq "Hyundai" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment