If statement relevant question

(imported topic written by sinucus)

I’m having trouble with an if statement. I wrote an analysis which checks to see if any fixlets are relevant.

values of headers “Subject” of relevant fixlets whose (not exists values of headers “X-Fixlet-Type” of it or (value of headers “X-Fixlet-Type” of it as lowercase != “task” and value of headers “X-Fixlet-Type” of it as lowercase != “analysis”)) of sites

The results work just like I wanted except when there are no results. It reports as “”. I would like to put a custom message there, so I thought an if statement would work. I have two questions about this.

  1. How can I modify the output to say “Fully patched” instead of “”

  2. When writing relevancy checks, how do I output the original content without having to run it twice? i.e.

if name of operating system = “Win2008” then name of operating system else “Not Win2008”

(imported comment written by NoahSalzman)

If you don’t want then you have to follow Ben’s advice here about concatenating plural results:

http://forum.bigfix.com/viewtopic.php?pid=20630#p20630

When you are not dealing with plurals then it is much easier to simplify this sort of thing:

(if it = “Win2008” then it else “Not Win2008”) of (name of operating system)