lunes, 22 de abril de 2013

Estructura de Desición

Cuando hay 1 alternativa la sintaxis es::

If  Condición then
     Sentencia
End If 

Cuando hay 2 alternativas  la sintaxis es:

If  Condición  then          
     Sentencia                  
Else                                
     Sentencia                  
End If                             


Cuando hay 3 o más alternativas la sintaxis es:

      If   Condición then 
           Sentencia
ElseIf  Condicion  then
           Sentencia
ElseIf  Condición  then
           Sentencia
ElseIf  Condición  then 
           Sentencia
Else
           Sentencia
End If
 


 

No hay comentarios:

Publicar un comentario