Help - Difference between revisions of "User Expressions"
From TTA Help System
BenStoever (talk | contribs) |
BenStoever (talk | contribs) |
||
Line 56: | Line 56: | ||
<td class="default">[[Image:NoSymbol.png]]</td> | <td class="default">[[Image:NoSymbol.png]]</td> | ||
<td class="default">[[Image:NoSymbol.png]]</td> | <td class="default">[[Image:NoSymbol.png]]</td> | ||
− | <td class="default"><code> | + | <td class="default"><code>treeUserValue("someValue") / 2</code></td> |
</tr> | </tr> | ||
<tr class="default"> | <tr class="default"> | ||
Line 64: | Line 64: | ||
<td class="default">[[Image:NoSymbol.png]]</td> | <td class="default">[[Image:NoSymbol.png]]</td> | ||
<td class="default">[[Image:NoSymbol.png]]</td> | <td class="default">[[Image:NoSymbol.png]]</td> | ||
− | <td class="default"><code> | + | <td class="default"><code>treeUserValue("someValue") * 100</code></td> |
</tr> | </tr> | ||
<tr class="default"> | <tr class="default"> | ||
Line 73: | Line 73: | ||
<td class="default">[[Image:NoSymbol.png]]</td> | <td class="default">[[Image:NoSymbol.png]]</td> | ||
<td class="default"> | <td class="default"> | ||
− | <div><code> | + | <div><code>treeUserValue("someValue") + 10</code></div> |
<div><code>"Two " + "words"</code></div> | <div><code>"Two " + "words"</code></div> | ||
</td> | </td> |
Revision as of 15:01, 7 October 2020
In Topological Tree Analyszer user-defined expressions are used to calculate the actual data (e.g., distances between trees) from basic topological values. A set of functions is available to formulate such expressions and to access the basic values. An unlimited number of user expressions can be defined and will be written to a results table at the end of an analysis. It is also possible to reference results from one user expression from another one and reuse the result there.
Contents
Functions to access basic topological values
Functions to access results of other expressions
Operators
The following list contains all valid operators. Each operator binds as strong or more than all operators listed below. The right columns indicate which types the operands need to have.