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

getVarWriteProtect

getVarWriteProtect( 
s_name 
) 
=> t / nil

Description

(SKILL mode only) Checks if a variable is write-protected. Does not work in SKILL++ mode. In SKILL++ mode, use getFnWriteProtect instead.

Arguments

s_name

Name of the variable to check.

Value Returned

t

The variable is write-protected.

nil

The variable is not write-protected.

Examples

Returns nil if the variable x is not write protected.

x = 5
getVarWriteProtect( 'x )
=> nil

Related Topics

Function and Program Structure


Return to top
 ⠀
X