Notice: This is a static archive of the Mobile Processing website, as the project is no longer significantly active. All forms and the Discourse boards are no longer functional, and the mobile website at http://wapmp.at/ is no longer available. Please visit the Mobile Processing Google Group for any remaining discussions and the Processing website for the latest news about Processing.
Index
Name

if()

Examples
for(int i=5; i

Description Allows the program to make a decision about which code to execute. If the expression evaluates to true, the statements enclosed within the block are executed and if the expression evaluates to false the statements are not executed.
Syntax
if(expression) { 
  statements 
}
Parameters
expression   any valid expression that evaluates to true or false

statements   one or more statements to be executed

Related else