Difference between revisions of "SHIP:Sail:Flow Control:else"

From Serious Documentation
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
! scope="col" style="text-align:left" | Description
 
! scope="col" style="text-align:left" | Description
 
|-
 
|-
|[[Flow_Control|else]]||Code execution for the false expression path of the if statement.
+
|[[SHIP:Sail:Flow_Control|else]]||Code execution for the false expression path of the if statement.
 
|}</onlyinclude>
 
|}</onlyinclude>
 
== Example ==
 
== Example ==
Line 33: Line 33:
 
}</source>
 
}</source>
  
[[Category:Flow Control Statements]]
+
[[Category:Flow Control]]

Latest revision as of 13:28, 10 October 2016

See Also

else

Branch control to follow the false branch of execution.

Statement Description
else Code execution for the false expression path of the if statement.

Example

if (expresstion)
   statement;
else
   statement;

or

if (expression) {
   statement 1;
   ...
   statement n;
}
else {
   block of statements;
}