Views: 6.4K
Replies: 1
Archived
|
Multiple IF statements and what to replace them withHi guys
I've come across a legacy app that has a large number of conditional statements one after the other and just wondered what approach people have used to make this sort of thing more readable. The code I have checks values in text boxes and if condition is met a method call is done. This happens for about 12 cases. I'm thinking I can do something with the textboxes as they will have polymorphic behavior, maybe create a separate method to pass them into? Cheers Anthony Joanes, Apr 05, 2013
|
|
Reply 1Tarriq Ferrose Khan, Jun 09, 2013
|