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

get

get( 
sl_id 
S_name 
) 
=> g_result / nil

Description

Returns the value of a property in a property list (including disembodied property list), association table, structure, database object, and a standard object (instance of a user-defined subclass of standardObject). get has no infix operator syntax.

Used in conjunction with putprop, where putprop stores the property and get retrieves it.

Arguments

sl_id

Symbol or disembodied property list.

S_name

Name of the property you want the value of.

Value Returned

g_result

Value of S_name in the sl_id property list.

nil

The named property does not exist.

Examples

putprop( 'chip 8 'pins ) 
=> 8

Assigns the property pins to a value of 8 to the symbol chip.

get( 'chip 'pins ) 
=> 8
chip.pins
=> 8
x = '(nil a 3 b 4)          ;a disembodied property list
x->a
=> 3
get(x 'a)
=> 3

Related Topics

plist

putprop


Return to top
 ⠀
X