Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Putting A .csv File Into Two Different Arrays And Than Generating A Result

$
0
0

Hey everyone!

I'm currently working on a project in Powershell for work where I have a .csv file that I need to import into Powershell, and than compare two rows of columns in the .csv file and if the comparison comes out false, I have to output "No Relation" or if it is, I have to output "Relation".

For example, the project we're doing is currently trying to organize our media collection, so we put all the titles in a .csv file, and I have to compare if there's at least one match between "Genre" and "Company", so if I input "Romance" and "Sony", Powershell would generate "No Relation", because there's no relation in the .csv file between "Sony" and "Romance" but if I put "Action" and "Sony", Powershell would generate "Relation" because there is at least one match.

What I currently have is -

$Genre = Import-csv CompanyMovies |...


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>