This shows you the differences between two versions of the page.
pt:while [2016/01/01 22:48] |
pt:while [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== While / End While ===== | ||
+ | ==== Formato ==== | ||
+ | **while** // | ||
+ | // | ||
+ | **end while** | ||
+ | ==== Descrição ==== | ||
+ | Executa a instrução (s) dentro do loop WHILE até a ExpressãoBooleana for avaliada como falsa. WHILE/ | ||
+ | ==== Ver também ==== | ||
+ | [[dountil|Do / Until]], [[fornext|For / Next]] | ||
+ | ==== Exemplo ==== | ||
+ | < | ||
+ | r = 1 | ||
+ | while r < 6 | ||
+ | print r | ||
+ | r = r + 1 | ||
+ | end while | ||
+ | </ | ||
+ | mostra | ||
+ | < | ||
+ | 1 | ||
+ | 2 | ||
+ | 3 | ||
+ | 4 | ||
+ | 5 | ||
+ | </ | ||
+ | ==== Desde a versão ==== | ||
+ | 0.9.4g |