Let's add our first piece of logic using an if statement. An if statement is a simple statement to determine whether or not a statement is true. Input the following into Xcode:
In the first line of the preceding code, we created a constant named isPictureVisible, and we set it to true. The next line starts our if statement and reads as follows: if isPictureVisible is true, then print Picture is visible. When we write if statements, we must use the curly braces to enclose our logic. It is a good practice to put the opening curly brace ({) on the same line as the if statement and the closing ...