IF - Traite des instruction et renvoie une valeur vrai ou fausse

                

IF <Condition 1>

ELSEIF <Condition 2>

ELSE <Condition 1 non exacte>

ENDIF

Exemple :

Prenom = "Bernard"
*
IF Prenom = "Bernard"
 MSGBOX("Bonjour monsieur "+Prenom)
ELSEIF Prenom = "Jacqueline"
 MSGBOX("Bonjour madame "+Prenom)
ELSE
 MSGBOX("Bonjour "+Prenom)
ENDIF


Fiche fabriquée le : 08/03/10 à 21:46:48