Ravi Sir's Cards › AWS
while vs until
This comparison card contrasts while and until. while Runs while test is true. until Runs while test is false. The card pairs while with most loops, and until with health checks.
Read card text
What this card says
Loop
while
Runs while test is true.
until
Runs while test is false.
Key points
Read data, counters.
Wait until ready.
Example
while (( i < 5 ))
Use when
Most loops.
Health checks.