PPROP

Synopsis
PPROP plistname propertyname value
Description

Adds a property to the property list named plistname. The property is named propertyname and has the value value. If no property list named plistname exists, then it is created. If the property named propertyname already has a value in the property list, then the value is replaced.

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