| Syntax | $getPublicProperty{property_name}{default_value} |
| Documentation | Returns the value of the named public property:
Parameters:
property_name, the name of the public property of the current branch whos value is requested.
default_value, a optional parameter to be returned if the named public property does not exist on the current branch.
Returns:
the requested value of the named public property.
Throws:
java.lang.IllegalArgumentException if the named public property does not exist on the current branch and no 'default_value' was specified. |
| Examples |
Get the value of the public property named 'some_property':
$set{name}{some_property}
$set{value}{no_value}
$if{$existsPublicProperty{$get{name}}}
{
$set{value}{$getPublicProperty{$get{name}}}
}
The following expression is equivalent:
$set{value}{$getPublicProperty{some_property}{no_value}}
The following expression could cause an exception to be thrown if the property named 'some_property' does not exist on the current branch:
$set{value}{$getPublicProperty{some_property}} |
| Group | Branch |
| Minimum required transaction-mode: | READ |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 2 |