GPROP

Synopsis
GPROP plistname propertyname
Description

Outputs the value of the property named propertyname in the property list named plistname, or the empty list if there is no such property or property list.

The plistname input must be a word.

The propertyname input may be word, list, or array. Property names are compared in the same manner as EQUALP compares its inputs.

Example
PPROP "plist1 "p1   1
PPROP "plist1 "p2   2
PPROP "plist2 "p1   10
PPROP "plist2 "p2   20
PPROP "plist2 [p 3] 30

SHOW GPROP "plist1 "p1
1
SHOW GPROP "plist1 "p2
2
SHOW GPROP "plist2 "p1
10
SHOW GPROP "plist2 "p2
20
SHOW GPROP "plist2 [p 3]
30

SourceForge.net Logo