PropValue
miscellaneous-functions PropValue
syntax
- PropValue(item, property)
definition
PropValue(item, property) results in a string parameter with the value of the property argument for the item argument.
applies to
item can be any tree item, not being itself or one of it’s subitems (an invalid recursion error is generated)
There is a list of all properties.
example
attribute<meter> A (ADomain) := B + C, descr = "A is the sum of B and C";
{
parameter<string> name := PropValue(A, 'name'); // result = 'A'
parameter<string> valuesunit := PropValue(A, 'ValuesUnit'); // result = 'meter'
parameter<string> expr := PropValue(A, 'expr'); // result = 'B + C'
parameter<string> descr := PropValue(A, 'descr); // result = 'A is the sum of B and C'
}