0

ist possible to have another if statement after the first if statement..

this is just an example

private void button_click(object sender, eventargs e)
try
{
if(age>5||age<=10)
{massagebox.show("young");}
else if(age>10||age<20);
messagebox.show("example");
}

catch(exception)
messagebox.show("error");

//can i have another if statement here???
if(something ==eg)
{messagebox.show("thanks");
}
3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Momerath
0

Not really understanding what you mean...You can have as many if statements as you want wherever you want pretty much.

Edited by WildBamaBoy: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.