contents   index   previous   next



if

 

The if statement is the most commonly used mechanism for making decisions in a program. It allows you to test a condition and act on it. If an if statement finds the condition you test to be true, the statement or statement block following it are executed. The following fragment is an example of an if statement.

 

if ( goo < 10 ) 

{

   Screen.write("goo is smaller than 10\n");

}

 


else