IF item $true - create a new collection

Welcome Forums General PowerShell Q&A IF item $true - create a new collection

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
3 years, 7 months ago.

  • Author
    Posts
  • #23516

    Participant
    Points: 0
    Rank: Member

    Hi all,
    First time posting, trying to do something that I'm sure I already know how but I'm brain farting it right now...

    I have a collection, I want to iterate through that collection and IF the item.property -eq $true, I want to add that item to another collection

    Thanks in advance
    Jas

  • #23518

    Moderator
    Points: 0
    Rank: Member

    Do you have code we can look at? If yes, please post using the pre tags or attach as text file.

    Thanks
    Daniel

  • #23519

    Participant
    Points: 0
    Rank: Member

    Nevermind...

    I figured out what I was trying to do

    o.O

The topic ‘IF item $true - create a new collection’ is closed to new replies.