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

prog2

prog2( 
g_expr1 
g_expr2 
[ g_expr3... ] 
) 
=> g_result

Description

Evaluates expressions from left to right and returns the value of the second expression. This is a syntax form.

Arguments

g_expr1

First SKILL expression.

g_expr2

Second SKILL expression.

g_expr3

Additional SKILL expressions.

Value Returned

g_result

Value of the second expression, g_expr2.

Examples

The following example returns the value of the second expression.

prog2( 
x = 4
p = 12
x = 6 )
=> 12

Related Topics

Function and Program Structure

prog1

progn


Return to top
 ⠀
X