if and else if question

I have a question about the if and else if statements

if (condition) // say I put a lot of outcomes in the parenthesis

does it have a limit I mean the one inside the parenthesis
sorry I don't get how to post codes in the forum yet at least tell me when seeing this.
Last edited on
What do you mean by "limit"? The predicate must be an expression. You can't write
1
2
3
if (for (int i = 0; i < 10; i++) j += i;){
    //...
}

Other than that, you can put anything you want in the predicate. But do note that excessively complex predicates are often an indication that the code can be restructured and simplified.
In order to post code in the forum, click the Format button that looks like "<>" and paste your code between the tags that are inserted.
Topic archived. No new replies allowed.