Index (MPI)
From Tapestries MUCK
(→index) |
m (MPI index moved to Index (MPI)) |
Revision as of 13:23, 30 March 2007
index
{index:propname} {index:propname,obj}
Returns the string value of the property whose name is stored in the given property.
This sounds confusing, but it's basically just the same as
{prop:{prop:propname}}
If no object parameter is passed to it, it looks for both the index property and the referenced property somewhere down the environment from the trigger object. Otherwise, it looks down the environment from the object specified for both of them.
If either property is not found, this returns an empty string.
If the property that it tries to access is read restricted, and the owner of the trigger object does not own the object that the properties are found on, then the MPI script stops with a Permission denied error.
index!
{index!:propname} {index!:propname,obj}
Returns the string value of the property whose name is stored in the given property.
This sounds confusing, but it's basically just the same as
{prop!:{prop!:propname}}
If no object parameter is passed to it, it looks for both the index property and the referenced property on the trigger object. Otherwise, it looks on the specified object for both of them.
If either property is not found, this returns an empty string. If the property that it tries to access is read restricted, and the owner of the trigger object does not own the object that the properties are found on, then the MPI script stops with a Permission denied error.