Google
 
Webcprogramming.com




An Affiliate of AIHorizon




if-else

if(conditional)
{
  //code
}
else
{
  //code
}
Braces are only needed for multiline blocks of code. The else can be followed by an additional if statement, to form a chain of if-else ifs.


-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.