Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

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

g_condition

Any SKILL expression.

g_expr1

Any SKILL expression.

Value Returned

t

Always returns t.

Examples

The following example, prints the digits 0 through 10.

i = 0
while( (i <= 10) printf("%d\n" i++) )
=> t

Related Topics

Flow Control Functions

foreach


Return to top
 ⠀
X