10 If & total if

Hoareau

XLDnaute Occasionnel
10 If & total if

Bonjour

10 if

ex:

If T_1 = 10 then
If T_2 = 11 then
If T_3 = 11 then
ETC...

1)Cas
toutes les conditions doivent être remplies
combien de End IF
Et comment les placer

2)Cas
Un certain nombre de ces conditions peuvent être remplies,
du moment que le total des conditions remplies ne dépasse pas un certain total.

Chaque condition remplie vaut 1


Ex:

Pour un total de conditions remplies de 3 n'importe qu'elle combinaison de ces 10 conditions par 3 sera valable.

merci
 

chris

XLDnaute Barbatruc
Re : 10 If & total if

Bonjour
Pour toutes les conditions obligatoires :
If condition1 and condition2 and ...and condition n then

Si plusieurs
If (conditions1 or conditions2 or ....) = nombre de cas then

A vérifier : je ne sais plus si vrai (condition remplie) renvoie 1 ou -1
 

mutzik

XLDnaute Barbatruc
Re : 10 If & total if

bonjour,
je ferais comme cela :

total = 0
If T_1 = 10 then total = total +1
If T_2 = 11 then total = total +1
If T_3 = 11 then total = total +1
...
if total = 15 then
...
end if

if total< monmaxi then
...
endif
 

Discussions similaires

Statistiques des forums

Discussions
312 196
Messages
2 086 102
Membres
103 117
dernier inscrit
augustin.morille