GPROP

Syntax

GPROP name propertyname

Explanation

GPROP gets the property value of a name that has been assigned a property with PPROP. If the property list does not exist, GPROP outputs the empty list.

See also PLIST, PPROP, PPROPS and REMPROP.

Examples

? PPROP "CAR "TIRES 4

? PPROP "CAR "DOORS 2

? GPROP "CAR "TIRES

Result: 4

? GPROP "CAR "DOORS

Result: 2

? GPROP "CAR "MPG

Result: []

?