Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.986 Beiträge
 
#1

Cleanup your ugly Boolean expressions with De Morgan’s laws

  Alt 15. Jan 2013, 13:10
This is a simple trick that can be handy to cleanup or simplify Boolean expressions, and is always good to have in your code-writing toolchest: De Morgan’s laws. These two laws allow to apply a negation to an and or or expression: (not A) and (not B)**not (A or B) (not A) or (not B) ...

More...
  Mit Zitat antworten Zitat