Forum Discussion

PS1Exprt_IMHD's avatar
PS1Exprt_IMHD
Copper Contributor
Jan 17, 2021

uniqe value

how can i have uniqe return for below code, i need the true value onlye

$Folder = Get-ChildItem -Path C:\10 -Directory | % {$_.Name -eq 'Test'}

foreach($Folders in $Folder)
{

$Folders

}

current result im getting

False
True
False
False

Resources