Jump to content

Recommended Posts

Posted

If you are checking for half a dozen or so conditions on an event would you use nested if / then's or a long if with multiple and checks on the same line?

 

This won't be running continuously or even frequently so speed would not be really an issue.

Posted

Nesting might be easier with regards to testing. You would be able to return notification or trace statements at each valid condition. Thus finding out if a particular condition doesn't yield the results expected.

 

After testing, switching to a multi-line (separated by / ) may be easier to see what is intended to happen after having put the project down for some time.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...