Thursday, December 6, 2012

Use of ELSEIF

During today's class, I expanded upon IF THEN by introducing the ELSEIF construction.

Note that ELSEIF is one word.

The correct syntax is

IF condition1 THEN
     ' BASIC code statements here will execute when
     condition1 evaluates to TRUE

ELSEIF condition2 THEN
     ' BASIC code statements here will execute when
     condition2 evaluates to TRUE

END IF