CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

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