While (MPI)
From Tapestries MUCK
(Difference between revisions)
Line 1: | Line 1: | ||
- | [[Category: | + | [[Category:functions (MPI)]][[Category:Looping Functions (MPI)]] |
=while= | =while= | ||
<mpi>{while:check,expr}</mpi> | <mpi>{while:check,expr}</mpi> |
Latest revision as of 01:42, 31 March 2007
while
{while:check,expr}
This is a looping structure.
It evaluates the 'check' argument, and if it evaluates true, then it evaluates the expr argument, and repeats the process.
If 'check' evaluates false, then the loop is exited. This returns the result of the last evaluation of expr.