previous
|
index
|
next
"if...else", "if", and "return" Statements
If the
else
keywords are removed, then:
If
test1
and
test2
are both true, then
A
,
B
, and
C
are done
If
test1
is true and
test2
is false, then
A
and
C
are done
If
test1
is false and
test2
is true, then
B
and
C
are done
If
test1
and
test2
are both false, then only
C
is done
if (test1) do A; if (test2) do B; do C;
previous
|
index
|
next