We see how to write if-else statements:
00:00 -Introduction
00:13 -Syntax for an if-else statement
01:26 -Example 1: Check for a value less than 0.5
03:21 -Example 2A: Check if a given scalar is even or odd
08:32 -Example 2B: Error check for devious users
12:16 -Example 3A: Check if two arrays have the same size
15:18 -Example 3B: Limit test to variables stored using double class
18:00 -Example 3C: Investigate the performance of our Example 3 code
20:29 -Example 4A: Decide to play a game
23:01 -Example 4B: Develop nested if statements
28:04 -Community challenge: If-else versus simple if statements
28:37 -Conclusion