Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions m_ext/0/cibles.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
BOBO4 : calculee base primrest = 0 restituee : "" ;
BOBORES : calculee base primrest = 0 restituee : "" ;

CONST0 : const = 0;
CONST1 : const = 1;
CONST2 : const = 2;
CONST3 : const = 3;

espace_variables ESP : categorie saisie, base;

cible test_dans_domaine:
Expand Down Expand Up @@ -626,6 +631,24 @@ afficher_erreur nom(VAR) ": "
par_defaut:
afficher "Y = ?, echec\n";
)
aiguillage (Y) : (
cas CONST0:
afficher "Y = CONST0, echec\n";
cas CONST1:
afficher "Y = CONST1, OK!\n";
cas indefini:
afficher "Y = --indefini--, echec\n";
par_defaut:
afficher "Y = ?, echec\n";
)
aiguillage nom (Y) : (
cas X:
afficher "X = Y, ah bon?\n";
cas Y:
afficher "Y = Y, ouf\n";
par_defaut:
afficher "Y = ?, echec\n";
)
afficher "FIN test aiguillage\n";

# Test stop fonction
Expand Down
Loading
Loading