I’m confused, I thought you wanted to check all 3 of them were valid before creating the party?
The difference between your code and my code is that in your code if selected was not empty, then it would not check the rest of the variables. However, with mine, it would go through each variable until it reaches an invalid one or the end of the statements.
Please correct me if I am wrong, I may be misunderstanding!
On line 1 (of the shortened code you just put), it will check if selected is empty. If so, then valid = false and the party will not be created. If slected is not empty, the statement is false and therefore it moves onto line 4, the first elseif. If level is less than or equal to 0, the statement is true and valid = false, and the party will not be created. If level is higher than 0, then it moves onto the last else if, if dungeon name is empty. If it is empty, then valid = false. Otherwise, the end of the if statement is reached, and valid is still equal to true, and the party is created.
Is this what you wanted? Hopefully I’m not just being really stupid and misunderstanding simple code.