--- description: "Learn more about: .WHILE (32-bit MASM)" title: ".WHILE" ms.date: "11/05/2019" f1_keywords: [".WHILE"] helpviewer_keywords: [".WHILE directive"] ms.assetid: 7c5e78ae-1bfd-4dcf-aa4c-ba940bcf7793 --- # .WHILE (32-bit MASM) Generates code that executes the block of *statements* while *condition* remains true. (32-bit MASM only.) ## Syntax > **.WHILE** *condition*\ > *statements*\ > **.ENDW** ## See also [Directives reference](directives-reference.md)\ [MASM BNF Grammar](masm-bnf-grammar.md)