While
While[test, body] evaluates test, then body, repetitively, until test first fails to give True.
Example
Count until a condition is met:
n = 1;
While[n < 100, n = 2*n];
n
(* 128 *)Please visit the official Wolfram Language Reference for more details.