- if (logical expression)
- {
- "true" actions
- }
- if (logical expression)
- {
- "true" actions
- }
- else
- {
- "false" actions
- }
<, >, <=, >=
==, !=
- variable = expression;
AboveBelow.java AboveBelow.html | was car just running and quit now? | yes | is gas gauge on empty? | yes | get gas |
| no | call tow truck | |||
| no | does engine crank? | yes | check gas | |
| no | check battery |
CarD.java CarD.html