| |
if (keyword)
if some condition is true, do this...
- if ( <condition> )
- {
- <statements>
- }
examples: maze store
|
|
- if some condition is true,
- do this
- else (if condition is not true)
- do that
-
- if ( <condition> )
- {
- <statements>
- }
- else
- {
- <statements>
- }
-
- examples: fiction black or green
|
|
|