October 2009
Beginner
432 pages
8h 14m
English
WHAT YOU’LL LEARN IN THIS HOUR:
Using the if statement for basic conditional tests
Testing whether one value is greater than or less than another
Testing whether two values are equal or unequal
Using else statements as the opposite of if statements
Chaining several conditional tests together
Using the switch statement for complicated conditional tests
Creating complicated tests with the ternary operator
When you write a computer program, you provide the computer with a list of instructions called statements, and these instructions are followed to the letter. You can tell the computer to work out some unpleasant mathematical formulas, and it works them out. Tell it ...
Read now
Unlock full access