while
while(
g_condition
g_expr1 ...
)
=> t
Description
Repeatedly evaluates a condition and sequence of expressions until the condition evaluates to false. This is a syntax form.
Repeatedly evaluates g_condition and the sequence of expressions g_expr1 ... if the condition is true. This process is repeated until g_condition evaluates to false (nil). Because this form always returns t, it is principally used for its side-effects.
Arguments
Value Returned
Examples
The following example, prints the digits 0 through 10.
i = 0
while( (i <= 10) printf("%d\n" i++) )
=> t
Related Topics
Return to top