OK, I'm drawing a blank on how to do this. I need to construct a WhERE
clause that looks like this:
Get-VBRTapeMedium -Library $LibraryName | Where {{$_.IsFull -eq $TRUE}
-and ({$_.Location -eq "Slot"} -or {$_.Location -eq "Drive"})}
And it's the $_.Location property I am confused about. I need it to
return any entries where the $.Location property is either "Slot" or
"Drive", and at the same time, the $_.IsFull property is "True".
The above should work, I think. But I seem to be recalling a better
way to specify that either/or condition, in a WhERE clause. And I'm
drawing a blank on how best to re-write this (if any).
Anyone have an idea?
--
Mike. Leone, <mailto:
tur...@mike-leone.com>
PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Photo Gallery: <
http://www.flickr.com/photos/mikeleonephotos>