Relevance -- Comparing list

written by Senthilnathan Manoharan

Hello Friends

I have a requirement where I have to compare two lists (generated by 2 different statements)

I see comparison operators for 2 values but couldnt find one which can compare groups.

Any advice on how to proceed ?

Is there something similar to powershell’s “IN” or “FOREACH”

Thanks

Senthil Nathan M

written by BrianPGreen

If they are lists of strings, you can use the “set” inspectors to do it:

Q: elements of (set of (“a”;“b”;“c”) - set of (“b”))

A: a

A: c

written by jgstew

You could do something like this externally to BigFix/IEM by using the REST API to get both queries and then compare in your language of choice. We are using python, but just about anything is possible.

You may also be able to do it through session relevance, depending on what it is.