SHIP:Sail:Flow Control:if

From Serious Documentation
Revision as of 11:40, 3 October 2016 by CarltonHeyer (talk | contribs)
Jump to: navigation, search

See Also

Template:SHIP:Sail:Flow Control

Branch control to follow one branch of execution or another.

Statement Description
Template:Flow Control Takes an expression, which resolves to a true or false value. Code execution branches according to the resolved expression.

Example

if (expression) statement;

or

if (expression) {

  statement 1;
  ...
  statement n;

}