Title: Layout 3
Course: CPS 120: Introduction to Computer Science ~ Master (Aug/2015) OLD > Section: Learning Units

✓ Layout 3 syntax – test whether to execute one of several blocks:

if (<condition>)
{
<block>
}
else if (<condition>)
{
<block>
}
else
{
<block>
}

The italicized part in orange can be repeated as many times as is needed.