I have 25 input boxes of which are grouped into 5 "messages", each containing 5 lines.
Any suggestions or tips on efficiently validating these text boxes? For example, Messages #2-5 cannot have any values unless Message #1 has values. Also, for a given message, a line can only have values if all the lines before it have values (for example, a message cannot contain values in line 1 and line 5 but not 2,3, or 4).
Is there a more efficient way of doing this without using a ton of if's? In my backend code, each line is assigned to a String object (e.g message2Line3)