Thursday, 5 May 2011

If/Else

For Project 3 I have decided to base my exhibit off the if/else term because I feel it best allows for a clever or comedic metaphor.

Below I've pasted the syntax from Processing's Reference libraries to outline the basics of the code:
if(expression) { 
  statements 
} else { 
  statements 
} 

if(expression) { 
  statements 
} else if(expression) { 
  statements 
} else { 
  statements 
}
Obviously extremely straight-forward, but allows for great complexity if needed.

No comments:

Post a Comment