I have two different arrays each with two properties for the objects in them. currently the script I have is something like
for-each (nested query objects) {
$a = ..
$b =...
$a + $b = [array]$c
$c}
for-each (different query) {
$d = ...
$e= ...
$d + $e = [array] $f
$f}
Compare-Object $c $f -IncludeEqual
the issue that I have with that is I get
"whole value of $a +$ b" compared against "whole value of $d+$e"
when I need both values of the objects individually compared
the next step was to obviously do $a vs $d | $a vs $e | $b...
but because of the nature of the values in those variables, it's impossible to realign them up again in the format that I need after they've been split
this is where I'm stuck
I need to have it so it does something like
$c (each value internal) compared against $f(each value internal) ie :
$a vs $d| $a vs $e| $b vs $d | $b vs $e
match found for $a vs $d = "$c.object "==" $f.object"
match found for $b vs $d= "$c.object "==" $f.object"
match was not found for either $a, $b = $c.object "<=" $f.object"
etc etc
How would I go about this?