Relevance query

(imported topic written by Darknight)

Hi All,

  1. I am trying to get manufacturer of processor via dmi as follows :

q:
if

(name

of

operating system

as

lowercase

contains

“sun”
)

then

(
""
)

else

if

(
exists

dmi)

then

(unique values

of

processor_manufacturers

of

processor_informations

of

dmi)

else

(
""
)

A:
000000000000

A:
GenuineIntel

T:
0.220 ms

as you can see i am gettign two answers one which is desired output “GenuineIntel” and other “000000000000” which is not required.

Can someone please let me know how i can filter out the output so that i can get only “GenuineIntel” not the numerical value “000000000000” using relevance.

  1. i want to change the below relevance to work as follows : if (value of system folder equal to “/”) then (""/" or root") else ("") , can some please assist?

Q: system folder
A: /
T: 88

i have tried to do it but failed :

Q: if (system folder is equal to “/”) then (""/" or root") else ("")
E: The operator “equal” is not defined.

(imported comment written by BrianPGreen)

For the first question, you can add aonther ‘whose’ to the relevance to filter out results with a lot of “0” in it. Perhaps something like:

(if (name of operating system as lowercase contains “sun”) then ("") else if (exists dmi) then (unique values of processor_manufacturers of processor_informations of dmi) else ("")) whose (it does not contain “0000”)

I’m not sure what you want in the second question.

(imported comment written by Darknight)

Thnaks Brian… in the second answer i am trying to compare teh output of relevance “system folder” and if it matches with “/” then i will echo as “root” or else blank or null value.

Thanks a lot for the help

(imported comment written by BrianPGreen)

Try this:

if (name of system folder = “/”) then “root” else “”