Skip to Main Content
Learning Processing, 2nd Edition
book

Learning Processing, 2nd Edition

by Daniel Shiffman
September 2015
Beginner content levelBeginner
564 pages
13h 28m
English
Morgan Kaufmann
Content preview from Learning Processing, 2nd Edition
5

Conditionals

That language is an instrument of human reason, and not merely a medium for the expression of thought, is a truth generally admitted.

—George Boole

The way I feel about music is that there is no right and wrong. Only true and false.

—Fiona Apple

In this chapter:

 Boolean expressions

 Conditional statements: How a program produces different results based on varying circumstances

 If, else if, else

 Relational and logical operators

5-1 Boolean expressions

What’s your favorite kind of test? Essay format? Multiple choice? In the world of computer programming, one only takes one kind of test: a boolean test — true or false. A boolean expression (named for mathematician George Boole) is an expression that evaluates to either true or false. Let’s ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Make: Getting Started with Processing, 2nd Edition

Make: Getting Started with Processing, 2nd Edition

Casey Reas, Ben Fry

Publisher Resources

ISBN: 9780123947925