TERMIUM Plus®

Par le Bureau de la traduction

Dans les médias sociaux

Consultez la banque de données terminologiques du gouvernement du Canada.

LOOP STATEMENT [8 fiches]

Fiche 1 2025-01-20

Anglais

Subject field(s)
  • Codes (Software)
  • Computer Programs and Programming
CONT

Loop statements may have an else clause; it is executed when the loop terminates through exhaustion of the iterable(with for) or when the condition becomes false(with while), but not when the loop is terminated by a break statement.

Français

Domaine(s)
  • Codes (Logiciels)
  • Programmes et programmation (Informatique)
OBS

else : désignation anglaise signifiant «sinon».

Espagnol

Campo(s) temático(s)
  • Códigos (Soporte lógico)
  • Programas y programación (Informática)
Conserver la fiche 1

Fiche 2 2023-10-17

Anglais

Subject field(s)
  • Programming Languages
  • Codes (Software)
CONT

With the help of a break statement a while loop can be left prematurely, i. e. as soon as the control flow of the program comes to a break inside of a while loop(or other loops), the loop will be immediately left.

Français

Domaine(s)
  • Langages de programmation
  • Codes (Logiciels)
CONT

Contrairement aux instructions présentes après la boucle, qui s'exécutent dans tous les cas (avec ou sans interruption par un break), le bloc d'instructions défini dans la clause else ne s'exécutera pas lors de l'interruption par un break. Après l'interruption, on passera directement aux instructions après la boucle.

OBS

instruction briser : les langages de programmation étant majoritairement en anglais, il est préférable d'éviter l'utilisation de la désignation française «instruction briser», qui risque de ne pas être comprise par les spécialistes du domaine.

Espagnol

Conserver la fiche 2

Fiche 3 2023-10-17

Anglais

Subject field(s)
  • Programming Languages
  • Codes (Software)
CONT

... a while loop only ends if the condition in the loop head is fulfilled. With the help of a break statement a while loop can be left prematurely, i. e. as soon as the control flow of the program comes to a break inside of a while loop(or other loops), the loop will be immediately left.

Français

Domaine(s)
  • Langages de programmation
  • Codes (Logiciels)
CONT

Si la condition reste toujours vraie, alors le corps de la boucle est répété indéfiniment [...] Il faut donc veiller à ce que le corps de la boucle contienne au moins une instruction qui change la valeur d’une variable intervenant dans la condition évaluée par while, de manière à ce que cette condition puisse devenir fausse et la boucle se terminer.

OBS

tant que : les langages de programmation étant majoritairement en anglais, il est préférable d'éviter l'utilisation de la désignation française «tant que», qui risque de ne pas être comprise par les spécialistes du domaine.

Espagnol

Campo(s) temático(s)
  • Lenguaje de programación
  • Códigos (Soporte lógico)
DEF

Palabra clave del tipo de enunciados iterativos que se utilizan en lenguajes de alto nivel. Significa repetir unas instrucciones dadas siempre que se siga cumpliendo una condición.

Conserver la fiche 3

Fiche 4 2021-12-23

Anglais

Subject field(s)
  • Programming Languages
  • Codes (Software)
CONT

To indicate a block of code in Python, you must indent each line of the block by the same whitespace. The two lines of code in the while loop are both indented four spaces. It is required for indicating what block of code a statement belongs to.

Français

Domaine(s)
  • Langages de programmation
  • Codes (Logiciels)

Espagnol

Conserver la fiche 4

Fiche 5 2021-12-22

Anglais

Subject field(s)
  • Programming Languages
  • Codes (Software)
CONT

Break statement in Python is used to bring the control out of the loop when some external condition is triggered. Break statement is put inside the loop body(generally after if condition).

Français

Domaine(s)
  • Langages de programmation
  • Codes (Logiciels)

Espagnol

Conserver la fiche 5

Fiche 6 2010-04-19

Anglais

Subject field(s)
  • Programming Languages
DEF

A compound statement that includes a control of repeated execution of its enclosed statements.

DEF

A statement that provides the basic iterative mechanism in the Ada language; it specifies that a sequence of statements is to be executed repeatedly as directed by an iteration scheme, or until an exit statement is encountered.

OBS

Terms and definition standardized by ISO.

Français

Domaine(s)
  • Langages de programmation
DEF

Instruction composée qui permet le contrôle de l'exécution répétée des instructions qu'elle contient.

OBS

instruction de boucle; instruction en boucle; instruction itérative : termes et définition normalisés par l'ISO.

Terme(s)-clé(s)
  • instruction LOOP

Espagnol

Conserver la fiche 6

Fiche 7 - données d’organisme externe 2006-02-01

Anglais

Subject field(s)
  • Compartment - ISO/IEC JTC 1 Information Technology Vocabulary
Universal entry(ies)
15.05.17 (2382)
numéro d'article de norme ISO/CEI
DEF

compound statement that includes a mechanism to control repeated execution of its enclosed statements

OBS

iteration statement; loop statement : terms and definition standardized by ISO/IEC [ISO/IEC 2382-15 : 1999].

Français

Domaine(s)
  • Tiroir - ISO/CEI JTC 1 Vocabulaire des technologies de l'information
Entrée(s) universelle(s)
15.05.17 (2382)
numéro d'article de norme ISO/CEI
DEF

instruction composée qui commande l'exécution répétée des instructions qu'elle contient

OBS

instruction de boucle ; instruction en boucle ; instruction itérative : termes et définition normalisés par l'ISO/CEI [ISO/IEC 2382-15:1999].

Espagnol

Conserver la fiche 7

Fiche 8 2001-02-28

Anglais

Subject field(s)
  • Informatics
CONT

Notice in the drawing routines, especially the arc routines, that familiarity with how the arc routine works is important. In the first arc statement, the command arc is executed and the first point is entered. The center option is chosen before the second point is entered. At this point, you should be able to decipher what is happening in the first nine statements of this function. Next, the arc number value is initialized and set. This value counts how many times you run through this routine. Each time you run through the routine, you create one first arc. The next statement calculates the arc length by calculating the distance between the start and end points of the first arc. Now that you have the arc number and the length of the arcs, you can calculate the overall length of the insulation. Notice the last statement of the routine. That is precisely what happens. In the while loop, the variable total is compared to the wall length. If the total variable is less than the wall length variable, the routine will be run again. Otherwise, the routine is ended.

Français

Domaine(s)
  • Informatique
OBS

Le calcul des arcs, anneaux et tubes circulaires.

Espagnol

Conserver la fiche 8

Avis de droit d’auteur pour la banque de données TERMIUM Plus®

© Services publics et Approvisionnement Canada, 2026
TERMIUM Plus®, la banque de données terminologiques et linguistiques du gouvernement du Canada
Un produit du Bureau de la traduction

En vedette

GCtraduction (accessible uniquement sur le réseau du gouvernement du Canada)

Utilisez ce prototype d’intelligence artificielle pour traduire le contenu du gouvernement du Canada jusqu’au niveau Protégé B inclusivement. Réservé au personnel de certains ministères et organismes.

Outils d'aide à la rédaction

Les outils d’aide à la rédaction du Portail linguistique ont fait peau neuve! Faciles à consulter, ils vous donnent accès à une foule de renseignements utiles pour mieux écrire en français et en anglais.

Lexiques et vocabulaires

Accédez aux lexiques et vocabulaires du Bureau de la traduction.

Date de modification :