title .WHILE ms.date 08/30/2018 f1_keywords .WHILE helpviewer_keywords .WHILE directive ms.assetid 7c5e78ae-1bfd-4dcf-aa4c-ba940bcf7793 .WHILE Generates code that executes the block of statements while condition remains true. Syntax .WHILE condition statements .ENDW See also Directives Reference