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
Value Returned
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
Return to top