If is a control statement and decides which code should be preformed.
- if x = true do something
- if x = false don't
Else expands on if and allows the program to chose between two or more blocks of code.
- if x = this do something
- else do something different
No comments:
Post a Comment