Mozilla Skin
Translate this page


Distance Node

From Moving Pictures

The distance node is what you would use to find how closely two strings are similar. This node uses something called the Levenshtein distance to determine, and returns an integer to represent the two strings 'closeness' (lower is better). Please review the following table of attributes.

Attribute Description
name This is a required attribute. This is what determines the variable name that is made for the result of the distance calculation.
string1 This is the first string for the two string comparison. This is a required attribute.
string2 This is the second string for the two string comparison. This is a required attribute.


Example

<distance name='compDistance' string1='stringone' string2='stringtwo' />

In this example ${compDistance} would have a value of 3 in it.