Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you add another branch?

Status
Not open for further replies.

calabama

Programmer
Feb 19, 2001
180
US

What is the best way to add another branch to this?

Thanks,

Cal
----------------------------------------------
if (expression) {
Expression_True_Statement;
Expression_True_Statement;
Expression_True_Statement;
} elsif (another_expression) {
Expression_Elseif_Statement;
Expression_Elseif_Statement;
Expression_Elseif_Statement;
} else {
Else_Statement;
Else_Statement;
Else_Statement;
}

----------------------------------------
In the begining
Let us first assume that there was nothing to begin with.
 
what do you mean? If you intend to add another if statement, you can just go on forever using elsif's ...


if (....) {
} elsif (..) {
} elsif (..) {
} elsif (..) {
} elsif (..) {
} elsif (..) {
} elsif (..) {
} else { ...
}


wzrd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top