WHILE statement

The XCSB while statement is a loop construct designed to repeat a sequence of statements. The general format of a while statement is:
while cond_expr do
	statement_list
done
where:
cond_expr is the expression that is executed each time through the loop and causes the loop to be terminated when it produces a 0 result. cond_expr is execute immediately before the first statement in the statement_list, if cond_expr equates to 0 none of the statements in the statement_list are executed.