Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Cleanup your ugly Boolean expressions with De Morgan’s laws (https://www.delphipraxis.net/172645-cleanup-your-ugly-boolean-expressions-de-morgan%92s-laws.html)

DP News-Robot 15. Jan 2013 13:10

Cleanup your ugly Boolean expressions with De Morgan’s laws
 
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) ...http://feeds.feedburner.com/~r/delph...~4/3y1jE5V6wMs

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:45 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz