Skip to contentSkip to conversation

inequality operator semantics

DISCUSSION Steffen Sledz 2 participants 2 messages Aug 11, 2011

lore
Share & tools
lore
#0 lore raw

Just a short question about the semantics of the != operator in conjunction with e.g. DRIVERS.

Does

DRIVERS!="xyz"

mean DRIVER for *all* parents is not equal to "xyz", or that there is *at least* one parent with this condition?

Does this semantics had changed over the time?

Regards,
Steffen Sledz

Signature · 7 lines
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:[email protected]
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
#1 lore raw
Quoted 7 lines · Steffen Sledz

Just a short question about the semantics of the != operator in conjunction with e.g. DRIVERS.

Does

 DRIVERS!="xyz"

mean DRIVER for *all* parents is not equal to "xyz", or that there is *at least* one parent with this condition?

One parent that doesn't match. DRIVERS!= not combined with more matches makes not much sense. There should be in all cases a driver, along the chain of parent devices, that does not match the string.

Quoted 1 line

Does this semantics had changed over the time?

Don't think so.

Kay