Sommer un tableau $B sous condition $A

Forums ProRealTime forum Français Support ProBuilder Sommer un tableau $B sous condition $A

Viewing 2 posts - 1 through 2 (of 2 total)
  • #183202

    Afin d’éviter une boucle supplémentaire, serait-il possible de sommer un tableau ($B) en fonction de la valeur d’un autre tableau ($A) ?

    Ici je tente un test où je cherche la somme des valeurs dans le tableau $B (ici 1111 = 202+404+505) sous la condition que $A soit égal à 25.

    « Summation » est-il utilisable ?

     

    #183204

    L’instruction summation n’est pas faite pour cela. Pour faire une somme d’un tableau, il faudra faire une boucle à l’intérieur de celui-ci.

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login