If

From Pinguino
Revision as of 11:21, 20 December 2011 by Skc (talk | contribs) (See also: Link to If..else)
Jump to: navigation, search


Name

if -

Description

if checks whether the expression inside the parenthesis ( ) is true and if it is executes the statement(s). If it is not true the statements are not executed.

Since

Syntax

if(expression){
 // statement(s) 
}

or

if(expression)
 // statement;
(expression)
a boolean statement that evaluates to true or false

Example

Bugs

See also

Comparison Operators

If..else

Comments