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

plist

plist( 
s_symbolName 
) 
=> l_propertyList / nil

Description

Returns the property list associated with a symbol.

From time to time, it is useful to print the entire property list attached to a given symbol and see what properties have been assigned to the symbol.

Arguments

s_symbolName

Name of the symbol.

Value Returned

l_propertyList

Property list for the named symbol.

nil

If there is no property list for the named symbol.

Examples

Prints the property list attached to the symbol a. Returns nil, the result of println. Notice that a single quote is used in this example. You can think of this as passing in the name of the symbol rather than its value.

a.x = 10
a.y = 20
println(plist('a))
(y 20 x 10)
=> nil

Related Topics

putprop

setplist


Return to top
 ⠀
X