Skip to main content
1 of 7
David
  • 4.4k
  • 6
  • 39
  • 49

How can one manage thousands of IF...THEN...ELSE rules?

I am considering building an application, which, at its core, would consist of thousands of if...then...else statements. Most of these statements would be nested inside each other. How can such an application be managed? I imagine that after a few hundred IF-statements, it would be as good as unpredictable how the program would react and debugging what lead to a certain reaction would mean that one would have to traverse the whole IF-statement tree every time.

I have read a bit about rules engines, but I do not see how they would get around this complexity.

David
  • 4.4k
  • 6
  • 39
  • 49