What is good practice to evaluate boolean variables that have come from a complex loop? For example - I have a “while” loop with nested “if” statements. The loop can exit under a variety of conditions and based on how it ended I would like to take differnt actions. This can be accomplished with further “IF-ELSE” statements but this can be hard to follow and troubleshoot later.
What is good practice here? Write to an excel and do the logic there? Use IF-ELSE? Something else I don’t know?
Case 1 True False False - Take Action 1
Case 2 True True False - Take Action 2
Case 3 True True True - Take Action 3
Where each column is a different Boolean variable.