Planual Explained - Day 22

“Rule 2.02-17": Article 2, Chapter 2, and Rule 17 – “Put the most common condition first”. “For formula efficiency, put the conditional with the most common occurrence first in the formula. It goes against PERFORMANCE elements of PLANS if you wish to go against this rule

Here is how it was done in Pre Planual Era:

Misbah_0-1591699919708.png

 

What is wrong with this method?  Most occurred condition is not being checked first which would have helped the system to exit early

Here is how it should be done in Planual Way:  

Since the number of unchecked Booleans are more we than the checked ones, we should put the condition for unchecked ones first

Misbah_1-1591699919713.png

 

 

 

 

 

Tagged: