Relevance: Compare a list of printer "Portname" to a list of printers

(imported topic written by wnolan91)

What I’m trying to figure out is how to determine a TRUE/FALSE, based on a list of printers.

What we are looking for is a way to look at the list of servers, which we can do… and see if they have any other printers that are not in the list to make the fixlet relevant.

For example:

Printer on Computers Printers are = “a”, “b”, “c”

Printer to excluded = “a”, “b”, “d” , “e”

You want to have it report back TRUE because “c” exists on this computer

We are trying to use something like: (“a|b|c" ) does not contain (“a|b|d|e”)

Any help would be appreciated.

(imported comment written by Lee Wei)

Set operators are particular useful for these types of problems.

Here are some examples:

q: elements of (set of (“a”; “b”; “c”) - set of (“a”; “b”; “d”; “e”))

A: c

q: (it > 0) of number of elements of (set of (“a”; “b”; “c”) - set of (“a”; “b”; “d”; “e”))

A: True

Lee Wei