Difference between revisions of "If"

From Pinguino
Jump to: navigation, search
(Created page with "Category:LanguageReference Category:Language Structures == Name == if - == Description == if checks whether the expression inside the parenthesis ( ) is true and if it…")
 
m (See also: Link to If..else)
Line 27: Line 27:
  
 
[[Comparison Operators]]
 
[[Comparison Operators]]
 +
 +
[[If..else]]
  
 
== Comments ==
 
== Comments ==

Revision as of 11:21, 20 December 2011


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